By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,960 Members | 987 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,960 IT Pros & Developers. It's quick & easy.

HyperLink Control + Button

P: n/a
I need an "Exit" button on my intranet web app that would direct the
user to the opening page of our intranet. The HyperLink control
provides that function, but its visual presentation is not a button.
How I can I have a submit button that works as a hyperlink out of my
ASP.NET app??
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

LinkButton is probably what you want. It looks like a hyper link, raises
Click event (posts back) in which you can redirect user to the login page
(as well as log out and end the session at that time)

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"Paul Sullivan" <pa*********************@worldnet.att.net> wrote in message
news:rr********************************@4ax.com...
I need an "Exit" button on my intranet web app that would direct the
user to the opening page of our intranet. The HyperLink control
provides that function, but its visual presentation is not a button.
How I can I have a submit button that works as a hyperlink out of my
ASP.NET app??
Nov 18 '05 #2

P: n/a
Paul,
in your page, create a button:
<asp:Button id="btnExit" runat="server" text="Exit"></asp:Button>

then in the button click event you can use this code:
Response.Redirect("http://www.foo.com/main/page.aspx")

Garett

"Paul Sullivan" <pa*********************@worldnet.att.net> wrote in message
news:rr********************************@4ax.com...
I need an "Exit" button on my intranet web app that would direct the
user to the opening page of our intranet. The HyperLink control
provides that function, but its visual presentation is not a button.
How I can I have a submit button that works as a hyperlink out of my
ASP.NET app??

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.