题目内容

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”;

查看答案
更多问题

Youhaveaself-hostedWindowsCommunicationFoundation(WCF)service.YouneedtoconfiguretheservicetoprovideanX509certificateduringauthentication.Whatshouldyouusetoconfiguretheservice?()

A. theCertificatepropertyoftheX509CertificatelnitiatorServiceCredentialclass
B. theSetCertificatemethodoftheX509CertificateInitiatorServiceCredentialclass
C. theSetCertificatemethodoftheX509CertificateRecipientServiceCredentialclass
D. theTrustedStoreLocationpropertyoftheX509CertificateRecipientServiceCredentialclass

You are implementing an ASP.NET AJAX page. You add the following control to the page. You need update the contents of the UpdatePanel without causing a full reload of the page. Which two actions should you perform?()

Add the following control before the UpdatePanel.
B. Add the following control within the UpdatePanel.
C. Add an AsyncPostBackTrigger that references Timer1.
D. Add a PostBackTrigger that references Timer1.

下列选项中()按钮是插入Fireworks HTML。

A
B
C
D

YouarecreatinganASP.NETwebapplicationthathostsseveralWindowsCommunicationFoundation(WCF)services. TheserviceshaveASP.NETCompatibilityModeenabled.UsersauthenticatewiththeWebapplicationbyusingacookie-basedASP.NETFormsAuthenticationmodel. YouaddaservicefilenamedAuthentication.svcthatcontainsthefollowingcodesegment: YouneedtoensurethatuserscanaccesstheWCFserviceswithouthavingtore-authenticate. Whichtwoconfigurationsettingsshouldyouadd?(Eachispartofacompletesolution.Choosetwo.)()

A. Inthesystemweb.Extensionsscripting/webServices/authenticationServiceelement,settheenabledattributetotrue.
B. Inthesystemweb.Extensionsscripting/webServices/profileServiceelement,settheenabledattributetotrue.
C. AddaserviceendpointwithbasicHttpBindingforthecontractSystem.Web.ApplicationServices.AuthenticationService.
D. AddacustomservicebehaviornamedAuthenticationServiceTypeBehaviorswithaserviceAuthenticationManagerelementthathasserviceAuthenticationManagerTypesettoSystem.Web.Security.SQLMembershipProvider

答案查题题库