Pages

Free Hosting

Monday, October 17, 2011

How to register Client Script


using System.Text;
using System.IO;

        StringBuilder script = new StringBuilder();
        script.Append("<script type=\"text/javascript\">");
        script.Append("Your Code");
        script.Append("</script>");
        string loadscript = imgscript.ToString();

        Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "clientScript", loadscript, false);

No comments:

Post a Comment