多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You create an ASP.NET page that contains the following tag.  Page Name  You need to write code that will change the contents of the tag dynamically when the page is loaded. What are two possible ways to achieve this goal?()

  • A、this.hdr1.InnerHtml = "Text";
  • B、(hdr1.Parent as HtmlGenericControl).InnerText = "Text";
  • C、HtmlGenericControl h1 = this.FindControl("hdr1") as HtmlGenericControl;h1.InnerText = "Text";
  • D、HtmlGenericControl h1 = Parent.FindControl("hdr1") as HtmlGenericControl;h1.InnerText = "Text";
正确答案:A,C
答案解析:
进入题库查看解析

微信扫一扫手机做题