1.命名空间:
    using System.Windows.Browser;
2.取得html的textbox控件,并可以设置其值:
Silverlight2.0中与Html页面元素互操作.     HtmlElement element = HtmlPage.Document.GetElementById("aa");
Silverlight2.0中与Html页面元素互操作.     
string str = "the content.";
Silverlight2.0中与Html页面元素互操作.     element.SetAttribute(
"innerText",str);
3.调用alert提示框:
Silverlight2.0中与Html页面元素互操作.HtmlPage.Window.Alert("be careful!");

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-11-02
  • 2021-05-29
  • 2021-05-18
  • 2021-11-29
  • 2021-11-17
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案