niusouti.com

YoucreateaMicrosoftASP.NETapplicationbyusingtheMicrosoft.NETFrameworkversion3.5.YouaddaTextBoxcontrolnamedTextBox1.Youwritethefollowingcodesegmentforvalidation.protectedvoidCustomValidator1_ServerValidate(objectsource,ServerValidateEventArgsargs){DateTime

题目

YoucreateaMicrosoftASP.NETapplicationbyusingtheMicrosoft.NETFrameworkversion3.5.YouaddaTextBoxcontrolnamedTextBox1.Youwritethefollowingcodesegmentforvalidation.protectedvoidCustomValidator1_ServerValidate(objectsource,ServerValidateEventArgsargs){DateTimedt=String.IsNullOrEmpty(args.Value)DateTime.Now:Convert.ToDateTime(args.Value);args.IsValid=(DateTime.Now-dt).Days<10;}YouneedtovalidatethevalueofTextBox1.WhichcodefragmentshouldyouaddtotheWebpage?()

A.

B.

C.

D.

E.

F.

G.

H.


相似考题