搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【多选题】

You&#8194;create&#8194;a&#8194;Web&#8194;page&#8194;named&#8194;TestPage.aspx&#8194;and&#8194;a&#8194;user&#8194;control&#8194;named&#8194;TestUserControl.ascx.&#8194;TestPage.aspx&#8194;uses&#8194;TestUserControl.ascx&#8194;as&#8194;shown&#8194;in&#8194;the&#8194;following&#8194;line&#8194;of&#8194;code.<uc:TestUserControl&#8194;ID="testControl"&#8194;runat="server"/>&#8194;On&#8194;TestUserControl.ascx,&#8194;you&#8194;need&#8194;to&#8194;add&#8194;a&#8194;read-only&#8194;member&#8194;named&#8194;CityName&#8194;to&#8194;return&#8194;the&#8194;value&#8194;"New&#8194;York".&#8194;You&#8194;also&#8194;must&#8194;add&#8194;code&#8194;to&#8194;TestPage.aspx&#8194;to&#8194;read&#8194;this&#8194;value.&#8194;Which&#8194;two&#8194;actions&#8194;should&#8194;you&#8194;perform?()

A、Add the following line of code to the TestUserControl.ascx.cs code-behind file. public string CityName { get { return "New York"; } } 

B、Add the following line of code to the TestUserControl.ascx.cs code-behind file. protected readonly string CityName = "New York"; 

C、Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.CityName; } 

D、Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.Attributes["CityName"]; } 

更多“You&#8194;create&#8194;a&#8194;Web&#8194;page&#8194;named&#8194;TestPage.aspx&#8194;and&#8194;a&#8194;user&#8194;control&#8194;named&#8194;TestUserControl.ascx.&#8194;TestPage.aspx&#8194;uses&#8194;TestUserControl.ascx&#8194;as&#8194;shown&#8194;in&#8194;the&#8194;following&#8194;line&#8194;of&#8194;code.<uc:TestUserControl&#8194;ID="testControl"&#8194;runat="server"/>&#8194;On&#8194;TestUserControl.ascx,&#8194;you&#8194;need&#8194;to&#8194;add&#8194;a&#8194;read-only&#8194;member&#8194;named&#8194;CityName&#8194;to&#8194;return&#8194;the&#8194;value&#8194;"New&#8194;York".&#8194;You&#8194;also&#8194;must&#8194;add&#8194;code&#8194;to&#8194;TestPage.aspx&#8194;to&#8194;read&#8194;this&#8194;value.&#8194;Which&#8194;two&#8194;actions&#8194;should&#8194;you&#8194;perform?()”相关的问题
第10题

A、A.Create a Retention Policy.  B、B.Create a managed folder mailbox policy.  C、C.Modify the properties of the mailbox database.  D、D.Modify the properties of the Mailbox server object.  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服