Sponsored By
DataConverter
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form
Reason:    
   

Home >> .Net >> ASP.Net >> How to call javascript fuction in server side?
Author Post

Vikas Giri


Total Post: 13
Member Since: 1/11/2011
Points: 65
How to call javascript fuction in server side?
Posted On: 10/7/2011 11:35:56 PM
How to call javascript function in serverside in asp.net?
thanks
Author Post

Amit Singh


Total Post: 104
Member Since: 8/8/2010
Points: 702
Re: How to call javascript fuction in server side?
Posted On: 10/7/2011 11:54:58 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.
Report Abuse Form
Reason:    
 
Total Online Users: 5149
Advertisement
MindStick DataConverter
Advertise with Us
  
Copyright © 2009 - 2014MindStick. All Rights Reserved.