public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ScriptReference sr = new ScriptReference("~/JScript.js");
ScriptManager1.Scripts.Add(sr);
Button1.Attributes.Add("onclick", "helloWorld()");
}
}
}