Call javascript's function from code behind

Total Post:135

Points:947

 1394  View(s)
Ratings:
Rate this:

I use below code for call javascript's function from code behind but doesn't call function 

//C#
Page.ClientScript.RegisterStartupScript(this.GetType(), "close panel", "CloseFunction()", true);
//javascript
function CloseFunction() {
            alert("call");
            }
  1. Re: Call javascript's function from code behind

    Hi Chintoo, 


    Use this:

    Page.ClientScript.RegisterStartupScript(this.GetType(), "close panel", "CloseFunction()",

    true);

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.