试题详情
单项选择题You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment. You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid element to the Web.config file. Which code segment should you add to the Page_Load event? ()

A、Wizard1.RequireEmail = tr ue;

B、Wizard1.Email = “user@address.com”;

C、Wizard1.MailDefinition.From = “registration@mysite.com”;

D、SmtpMail.SmtpServer = “ mail.contoso.com”;

  • C
  • 关注下方微信公众号,在线模考后查看

热门试题