在VS2005的Pageload中调用JavaScript

在VS2005的Pageload中调用JavaScript,javascript,Javascript,有人能告诉我如何在页面加载时调用这个JavaScript函数吗?我正在使用VS2005。试试这个 protected void Page_Load(object sender, EventArgs e) { // here i need to call my javscript function // can any one tell me the syntax If(HhdnBrowsertype.Value==”1”) {

有人能告诉我如何在页面加载时调用这个JavaScript函数吗?我正在使用VS2005。

试试这个

    protected void Page_Load(object sender, EventArgs e)
        {
// here  i need to call  my javscript  function
//  can any one  tell me the  syntax
          If(HhdnBrowsertype.Value==”1”)
    {
    // here  go my page load  function 
    }

        }
    protected void Page_Load(object sender, EventArgs e)
        {
// here  i need to call  my javscript  function
//  can any one  tell me the  syntax
          If(HhdnBrowsertype.Value==”1”)
    {
    // here  go my page load  function 
    }

        }
<body onload="CheckBrow()">
Page.ClientScript.RegisterStartupScript(typeof(string), "CheckBrow", "CheckBrow();", true);