YoucreateaWebFormthatallowsuserstocreateanewaccount.YouaddaCreateUserWizardcontrolbyusingthefollowingcodesegment.Youneedtoensurethatthewizardautomaticallysendsane-mailmessagetouserswhentheyfinishcreatingtheiraccounts.YouaddavalidelementtotheWeb.configfile.WhichcodesegmentshouldyouaddtothePage_Loadevent?()
A. Wizard1.RequireEmail=True
B. Wizard1.Email="user@address.com"
C. Wizard1.MailDefinition.From="registration@mysite.com"
D. SmtpMail.SmtpServer="mail.contoso.com"
查看答案
Your company has a server named Server1 that runs a Windows Server 2008 Core Installation, and the DNS server role. Server1 has one network interface named Local Area Connection. The static IP address of the network interface is configured as 10.0.0.1. You need to create a DNS zone named local.contoso. com on server1. Which command should you use?()
A. ipconfig /registerdns:local.contoso.com
B. dnscmd Server1 /ZoneAdd local.contoso.com /DSPrimary
C. dnscmd Server1 /ZoneAdd local.contoso.com /Primary /file local.contoso.com.dns
D. netsh interface ipv4 set dnsserver name=local.contoso.com static 10.0.0.1 primary
You need to create a method to clear a Queue named q.Which code segment should you use?()
A
B
C
D
YoucreateaWebForm.TheWebFormallowsuserstocalculatevaluesanddisplaytheresultsinalabelnamedlblResults.YouneedtocaptureallunhandledexceptionsontheWebFormthroughtheErrorevent.TheErroreventmustcaptureeachunhandledexceptionanddisplayitontheWebForm.Whichcodesegmentshouldyouuse?()
A. ProtectedSubPage_Error(ByValsenderAsObject,_ByValeAsSystem.EventArgs)HandlesMe.ErrorlblResults.Text=e.ToString()e=NothingEndSub
B. ProtectedSubPage_Error(ByValsenderAsObject,_ByValeAsSystem.EventArgs)HandlesMe.ErrorlblResults.Text=Server.GetLastError().ToString()Server.ClearError()EndSub
C. ProtectedSubPage_Error(ByValsenderAsObject,_ByValeAsSystem.EventArgs)HandlesMe.ErrorResponse.Write(e.ToString())e=NothingEndSub
D. ProtectedSubPage_Error(ByValsenderAsObject,_ByValeAsSystem.EventArgs)HandlesMe.ErrorResponse.Write(Server.GetLastError().ToString())Server.ClearError()EndSub
在下图所示的框架面板中,说法正确的是()
A. 上部部框架的高度为200个像素
B. 现在在对下部的框架进行设置
C. 下部框架的高度是一个相对值
D. 上部框架的高度是一个相对值