Util.JSSetChange(Page, GetType());

public static void JSSetChange(Page page, Type cstype) { // Define the name of the client scripts on the page. String csname1 = "ClickScript"; // Get a ClientScriptManager reference from the Page class. ClientScriptManager cs = page.ClientScript; // Check to see if the startup script is already registered. if (!cs.IsStartupScriptRegistered(cstype, csname1)) { String cstext1 = "hasChanged = true;"; //前台界面有个页面级别的变量叫hasChanged cs.RegisterStartupScript(cstype, csname1, cstext1, true); } }

 

相关文章:

  • 2021-09-29
  • 2021-06-25
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
猜你喜欢
  • 2022-02-16
  • 2022-12-23
相关资源
相似解决方案