.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 from aspx.vb page

Posted By: Senthilnathan     Posted Date: May 06, 2011    Points:5   Category :ASP.Net
Hi Friends,

I have a function in javascript.

I need to call this function from aspx.vb page.

Currently I'm working on dotnet 1.1

How can I do this?

I have used the below code,

Dim t As Type = Me.[GetType]()
Page.RegisterStartupScript ("t","SetBox()")

But its not working..

Please help me on this..



Thanks,
Senthilnathan



Responses
Author: Senthilnathan             
Posted Date: May 06, 2011     Points: 20   

Hi Friends,

finally I got the solution.

Page.RegisterStartUpScript("t","<script language='javascript'>SetBox();</script>")

it's working fine.


Thanks.


Author: Rakesh             
Posted Date: May 10, 2011     Points: 20   

Hi,

u have resister JavaScript on page load

such as
Page.RegisterStartUpScript("key","<script language='javascript'>onStart();</script>")

For More visit http://www.dotnetcodes.com/dotnetcodes/Forums/JavaScript-33-java.aspx

Rakesh



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