Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: How do I create a simple "Back" button?


Message #1 by "Jon Maz" <jonmaz@s...> on Thu, 14 Feb 2002 12:15:51
Hi,



I want to create a "Back" button on an asp.net page, and assume that the 

way to do this is to use the http referer.  However I am more than a bit 

baffled by the SDK documentation on the HttpWebRequest and HttpWebResponse 

classes, and can't work it out myself.  



Can anyone give me some simple VB.NET code to do this, including whatever 

namespaces would have to be imported?



Thanks,



JON
Message #2 by "Alvin Ling" <alvin.ling@i...> on Thu, 14 Feb 2002 08:05:57 -0500
Can't help with a server-side version but if you're trying to simulate

the browser's back button, you could use the traditional approach...



<input type="button" value="Back" onclick="history.go(-1)" />







> -----Original Message-----

> From: Jon Maz [mailto:jonmaz@s...] 

> Sent: Thursday, February 14, 2002 12:16 PM

> To: aspx_beginners

> Subject: [aspx_beginners] How do I create a simple "Back" button?

> 

> 

> Hi,

> 

> I want to create a "Back" button on an asp.net page, and 

> assume that the 

> way to do this is to use the http referer.  However I am more 

> than a bit 

> baffled by the SDK documentation on the HttpWebRequest and 

> HttpWebResponse 

> classes, and can't work it out myself.  

> 

> Can anyone give me some simple VB.NET code to do this, 

> including whatever 

> namespaces would have to be imported?

> 

> Thanks,

> 

> JON




> $subst('Email.Unsub').

> 

> 









Message #3 by "Jon Maz" <jonmaz@s...> on Thu, 14 Feb 2002 14:53:25
Hi,



Thanks for your help, but as you suspect, I am trying to work out how to 

do it with an <asp:Button runat=server> control!



JON

  Return to Index