多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You are developing an ASP.NET Web page. You add the following markup to the page. You add the following code segment to the code-behind. You need to save the uploaded file and display a message to the user that indicates that the upload either succeeded or failed. Which two actions should you perform?()

  • A、Replace line 3 with the following code segment. if (FileUpload1.HasFile)
  • B、Replace line 3 with the following code segment. if (FileUpload1.FileContent.Length > 0)
  • C、Insert the following code segment at line 6.  FileUpload1.SaveAs(saveName);
  • D、Insert the following code segment at line 6. FileUpload1.FileContent.CopyTo(new FileStream(saveName, FileMode.Open);
正确答案:A,C
答案解析:
进入题库查看解析

微信扫一扫手机做题