Re: hyperlink function in a normal button
From: Hermit Dave (hermitd.REMOVE_at_CAPS.AND.DOTS.hotmail.com)
Date: 10/10/04
- Next message: Hermit Dave: "Re: Dynamic Controls on a Multi-Step Form"
- Previous message: RJN: "Re: How to detect if user has close the browser?"
- In reply to: Joshua Weir: "hyperlink function in a normal button"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 10 Oct 2004 07:40:40 +0100
well this is what you do
either
1. add onclick on the button which opens the relative url using javascript
or
2. on server side click handler. do a
Response.Redirect("virtualdir/newfile.aspx") // something like this
3. on server side click handler. do a
Server.Transfer("virtualdir/newfile.aspx")
response.redirect does a round trip to the client before reaching the
destination. server.transfer on the other than goes straight across.
but in this case client has no information on transfer and if the client
press F5 or refresh from the newpage would still be taken back to old page.
-- Regards, Hermit Dave (http://hdave.blogspot.com) "Joshua Weir" <JoshuaWeir@discussions.microsoft.com> wrote in message news:E623309F-22A4-42C5-A6B7-2C1E84F1E64D@microsoft.com... > Hi, > > I want to simply add hyperlink functionality to a normal web control button. > I understand that i can use the hyperlink button for this but in this case i > dont want to do this. > > Say i have a webcontrol button on the webform. within the onclick function > how would i hyperlink to a new aspx page in the same virtual directory? Is it > something to do with href? I dont wanna use the full hyperlink > (http://www.google.com.au/) but i want to just specify the .aspx page because > its in the same virtual directory.... > > I am developing a web app in asp.net using code behind and vb server and > client code.
- Next message: Hermit Dave: "Re: Dynamic Controls on a Multi-Step Form"
- Previous message: RJN: "Re: How to detect if user has close the browser?"
- In reply to: Joshua Weir: "hyperlink function in a normal button"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|