CALL JAVASCRIPT'S FUNCTION FROM CODE BEHIND

Chintoo Semi

Total Post:135

Points:947
Posted by  Chintoo Semi
 1143  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. Sumit Kesarwani

    Post:378

    Points:2694
    Re: Call javascript's function from code behind

    Hi Chintoo, 


    Use this:

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

    true);

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!