Re: hyperlink function in a normal button

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Hermit Dave (hermitd.REMOVE_at_CAPS.AND.DOTS.hotmail.com)
Date: 10/10/04


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.


Relevant Pages

  • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
    ... You could do it as a web service. ... The handler can draw on the webservice for information and db lookup. ... IE posts data AJAX to handler on web server ... featured application (say thick client) which does a lot of complicate ...
    (microsoft.public.dotnet.framework.aspnet)
  • AJAX simultaneous requests getting queued up
    ... server for updated information to show, ... Handler, ... Once the first request comes back, ... To make sure the problem wasn't on the client, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: errno 107 socket.recv issue
    ... The RequestHandler class for our server. ... It is instantiated once per connection to the server, ... If you want data persistant over connections, store them in your handler class. ... # self.request is the TCP socket connected to the client ...
    (comp.lang.python)
  • oh dear.. should mico/demo werk? is mico broke?
    ... thread -o server ... client.cc:27: error: `CosNaming' has not been declared ... handler must be the last handler for its try block ...
    (freebsd-stable)
  • Re: Remoting and Events with VB.NET
    ... roles are switched, i.e. client becames server, and ... server becames client. ... callback method or event handler) have to be MBR, and to be know to the ... > Public Sub RaiseRemoteEvent() Implements ITestObject.RaiseRemoteEvent ...
    (microsoft.public.dotnet.framework.remoting)