Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 29th, 2005, 11:19 PM   #1
Ashok
Newbie
 
Join Date: May 2005
Posts: 8
Rep Power: 0 Ashok is on a distinguished road
Button1_Click Event

Can anyone guide me for writing code in asp/vbscript for the folling:-
If clicked on button another page should open.
Ashok is offline   Reply With Quote
Old Nov 19th, 2005, 5:55 AM   #2
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Post

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.
__________________
Visit: http://www.somaiya.edu

Last edited by java_roshan; Nov 19th, 2005 at 5:57 AM. Reason: Some minute Changes!
java_roshan is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:43 PM.

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