Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   ASP (http://www.programmingforums.org/forum32.html)
-   -   Button1_Click Event (http://www.programmingforums.org/showthread.php?t=4172)

Ashok May 29th, 2005 11:19 PM

Button1_Click Event
 
Can anyone guide me for writing code in asp/vbscript for the folling:-
If clicked on button another page should open.

java_roshan Nov 19th, 2005 5:55 AM

You can use the Response.Redirect(URL) method of ASP to direct to another page. Also, for this, you would need to specify that page (containing the button) as an ASP page for the scripts to be understood at the server.Usually this should be used with parameters in the form (more in processing input data)

Also, for doing it through VBScript, I think, you wud need to write a subroutine and provide a static link using document.write("<a href="link">textgoeshere</a>") and/or use the meta tag in the page and automatically redirect ot that page(figure this out know-how!). And the subroutine in which you are writing the above script should be called on the click of the button.


All times are GMT -5. The time now is 9:23 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC