网友您好, 请在下方输入框内输入要搜索的题目:
YouaredevelopinganASP.NETWebpage.Youaddthefollowingmarkuptothepage.Youaddthefollowingcodesegmenttothecode-behind.Youneedtosavetheuploadedfileanddisplayamessagetotheuserthatindicatesthattheuploadeithersucceededorfailed.Whichtwoactionsshouldyouperform?()
A.Replaceline3withthefollowingcodesegment.if(FileUpload1.HasFile)
B.Replaceline3withthefollowingcodesegment.if(FileUpload1.FileContent.Length>0)
C.Insertthefollowingcodesegmentatline6. FileUpload1.SaveAs(saveName);
D.Insertthefollowingcodesegmentatline6.FileUpload1.FileContent.CopyTo(newFileStream(saveName,FileMode.Open);
参考答案