• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 服務器控件中js腳本注冊方法

    發表于:2007-06-21來源:作者:點擊數: 標簽:
    方法1 #region 靜態 java script腳本 const string sScript=@"script type=""text/javascript"" language='javascript' ... /script protected override void Render(HtmlTextWriter output) { output.Write(sScript); } 方法2 using(StreamReader reader =

       

    方法1


            #region 靜態javascript腳本
           const string sScript=@"<script type=""text/javascript"" language='javascript'> ... </script>


    protected override void Render(HtmlTextWriter output)
      {
       output.Write(sScript);
      }


    方法2


    using(StreamReader reader = new StreamReader(this.GetType().Assembly.GetManifestResourceStream(GetType(), "jsName.js")))
       {
        string sJsSlider = reader.ReadToEnd();
      
        output.Write(sJsSlider);
       }


    方法3


    using(StreamReader reader = new StreamReader(this.GetType().Assembly.GetManifestResourceStream(GetType(), "jsName.js")))
       {
        string sJsStart = reader.ReadToEnd();
        Page.RegisterStartupScript(this.GetType().ToString() + this.UniqueID + "_Startup", sJsStart);
       }

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>