Reply
Help with a little button...
Old 06-27-2007, 04:45 PM Help with a little button...
Junior Talker

Posts: 2
Name: Kay Harrison
Location: New Hampshire
Hi. I have a web site to manage that's written in aspx/vb and I want this button to go to a particular page: I took out brackets, of course...

[asp:ButtonID="btnContinue"runat="server"Text="Continue"/]

I know I can add something here to direct this to my secure home page, but is it as simple as adding "URL="blahblahblah.org" ??

Sorry, I am just a beginner, so go ahead and banish me if I'm not smart enough to be here!


kay.harrison is offline
Reply With Quote
View Public Profile Visit kay.harrison's homepage!
 
When You Register, These Ads Go Away!
Old 06-27-2007, 04:46 PM Help with a little button...
Junior Talker

Posts: 2
Name: Kay Harrison
Location: New Hampshire
Hi. I have a web site to manage that's written in aspx/vb and I want this button to go to a particular page: I took out brackets, of course...

[asp:ButtonID="btnContinue"runat="server"Text="Continue"/]

I know I can add something here to direct this to my secure home page, but is it as simple as adding "URL="blahblahblah.org" ??

Sorry, I am just a beginner, so go ahead and banish me if I'm not smart enough to be here!
kay.harrison is offline
Reply With Quote
View Public Profile Visit kay.harrison's homepage!
 
Old 06-27-2007, 05:00 PM Re: Help with a little button...
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Wish for Webmaster Talk
Posts: 5,181
Name: John Alexander
You need to make a method ( a VB subroutine aka just a sub ) that sends the user to the page, either with Server.Transfer, Response.Redirect, or some other method if you'd like, and then have the code you just wrote handle the click event.

It would be a tiny little bit faster and easier to make it a regular button and not a server control, and use java to take care of the click and redirect.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 06-28-2007, 12:04 AM Re: Help with a little button...
Experienced Talker

Posts: 37
Learning Newbie is right on. If you have Visual Studio it's as easy as dragging a button on to the form, double clicking on it, and adding the Response.Redirect("<URL>") in the method. There is alot the Visual Studio does for you when you double click on the button with the development tool. It is possible to do without VS but I wouldn't recommend it. Without Visual Studio I would go the Javascript route.
c0ry is offline
Reply With Quote
View Public Profile
 
Old 07-03-2007, 05:32 PM Re: Help with a little button...
boomers's Avatar
Extreme Talker

Posts: 215
Im not totally sure I understand... I think you want to redirect someone to another page when they click a button.

If it is then you could just use response.redirect("www.domain.com") in the button click event.

If Ive misunderstood what you want then feel free to post here again
__________________
NewsToolkit - Add the latest news headlines to your site, automatically kept updated... a FREE service!
InThePremiership.com - Football News Portal, updated hourly!
boomers is offline
Reply With Quote
View Public Profile
 
Old 07-03-2007, 09:22 PM Re: Help with a little button...
Experienced Talker

Posts: 37
Same person same thread here:
http://www.webmaster-talk.com/net-pr...le-button.html
c0ry is offline
Reply With Quote
View Public Profile
 
Old 07-04-2007, 03:16 AM Re: Help with a little button...
chrishirst's Avatar
Super Moderator

Posts: 13,519
Location: Blackpool. UK
(duplicate threads merged)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Help with a little button...
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15830 seconds with 12 queries