Home > DeveloperSection > Forums > Call javascript's function from code behind
Chintoo Semi

Total Post:135

Points:947
Posted on    August-29-2014 12:59 AM

 JavaScript
Ratings:


 1 Reply(s)
 610  View(s)
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");

            }



Sumit Kesarwani

Total Post:378

Points:2694
Supported
Posted on    September-01-2014 12:13 AM

Hi Chintoo, 

Use this:

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

true);


Don't want to miss updates? Please click the below button!

Follow MindStick