.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

how to call javascript function using Page.ClientScript.RegisterStartupScript()

Posted By: jay     Posted Date: April 21, 2010    Points:2   Category :ASP.Net
hi i am using the below code in onload event in c# 2005

Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "<script type=text/javascript> alert('Hello World!') </script>");


now its workin fine.. but i want to call a function which is written from inlline codepage.. so how to pass the function name in above code?

Responses
Author: Hiren Soni          Accepted Answer   
Posted Date: April 21, 2010     Points: 10   

Page.ClientScript.RegisterStartupScript(this.GetType(), "PopupScript", "<script type=text/javascript> changed(); </script>");



use the function name between script tag

Hiren soni
http://www.dotnetask.com
Author: jay             
Posted Date: April 21, 2010     Points: 5   

hi hiren thanks lot.



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend