p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

aspdotnet_website_programming thread: I want to use buttons to navigate through my site.... Not link buttons.


Message #1 by "Walter W. Holliday" <Walt@W...> on Fri, 21 Feb 2003 22:24:23
This is most likely a stipid question but I can not find the answer.

I have all of my pages asp pages designed. I want to use buttons that 
depress to navigate through the site. I made all the buttons. Built all 
the forms. How do I get a button to go to another form when clicked upon?

I know how stupid this question must seem but I can not find any source 
code which does what I want to do.

I tried to use link buttons but the underline under the text will not go 
away.



Thanks,
Message #2 by markwsanders@h... on Fri, 21 Feb 2003 22:40:49
Off the top of my head I would try using Server.Redirect("") in the 
button's OnClick() event handler.
Message #3 by "Walter W. Holliday" <Walt@W...> on Fri, 21 Feb 2003 22:47:33
> Off the top of my head I would try using Server.Redirect("") in the 
b> utton's OnClick() event handler.





Thank You....   I knew it was in my mind somewhere but I could not pull 
it out.. This helped much....
Message #4 by "Gary W. Stewart" <gwstewart@p...> on Mon, 24 Feb 2003 09:07:28 -0500
Use client side scripting (Javascript) as follows:


<script type=3D"text/javascript">
	function redirectme()
	{
	  window.location=3D"tryjs_other.htm"
	}
</script>

<html>
<body>
<input type=3D"button" onclick=3D"redirectme()" value=3D"Redirect">
</body>
</html>


Gary W. Stewart


-----Original Message-----
From: Walter W. Holliday [mailto:Walt@W...]
Sent: Friday, February 21, 2003 5:24 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] I want to use buttons to
navigate through my site.... Not link buttons.


This is most likely a stipid question but I can not find the answer.

I have all of my pages asp pages designed. I want to use buttons that
depress to navigate through the site. I made all the buttons. Built all
the forms. How do I get a button to go to another form when clicked
upon?

I know how stupid this question must seem but I can not find any source
code which does what I want to do.

I tried to use link buttons but the underline under the text will not go

away.



Thanks,
---
Professional Design Patterns in VB.NET:
Building Adaptable Applications

Want to know how design patterns bring reusable
design and adaptabilty to your applications? How
to recognize the need for a design pattern
solution? How to select, design, and implement
the right patterns? How parts of the .NET Framework
(like the .NET Data Providers and .NET Remoting)
take advantage of design patterns? This book
presents a practical approach to using design
patterns in VB.NET, by focusing on the relevance
of design patterns in the different tiers of a
distributed n-tier architecture.

http://www.wrox.com/books/1861006985.htm


  Return to Index