Code

 本想在asp.net加这个控件的,整了半天,还是不行,IE 6下通不过, FF可以用,但有时也会报错,单把代码片段copy出去执行又没事。郁闷死。

;

        string csname = "calendarInclude";
        
string strUrl1 = "js/calendar.js";
        
string strUrl2 = "js/calendar-setup.js";
        
string strUrl3 = "js/calendar-zh.js";
        Type cstype 
= this.GetType();
        ClientScriptManager manager 
= Page.ClientScript;
        
        
if (!manager.IsClientScriptIncludeRegistered(cstype, csname))
        {
            manager.RegisterClientScriptInclude(cstype, 
"calendarjs", strUrl1);
            manager.RegisterClientScriptInclude(cstype, 
"calendarsetup", strUrl2);
            manager.RegisterClientScriptInclude(cstype, 
"calendarzh", strUrl3);
        }

相关文章:

  • 2022-01-31
  • 2022-02-26
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2021-12-16
  • 2022-01-24
  • 2021-10-10
  • 2021-06-29
相关资源
相似解决方案