Home > DeveloperSection > Forums > How to call javascript fuction in server side?
Vikas Giri
Vikas Giri

Total Post:13

Points:91
Posted on    October-07-2011 11:35 PM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 1319  View(s)
Rate this:
How to call javascript function in serverside in asp.net?
thanks


Amit Singh

Total Post:103

Points:721
Posted on    October-07-2011 11:54 PM

Hi vikas,

You can call server side  any javascript function in Asp.Net. Using RegisterStartupScript function as:

Page.ClientScript.RegisterStartupScript(GetType(), "JavaScript", "javascript: showFunction();", true);
where showFunction() is javascript function.
and RegisterStartupScript is asp.net built in method.















Recent Activities

samuel fernanandes Created New Discussion Working with sessions and POST   an hour ago

Barbara Jones added new Question What is ANR?   3 days ago

Kamlakar Singh added new Blog Convert Text Document to PDF File   17 days ago

Kamlakar Singh added new Article Introduction to Backbone.js   17 days ago

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