473,497 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

HyperLink Control + Button

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
2 1350
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1309
by: Tom Jorgenson | last post by:
I need to create a custom control that behaves like a HyperLink control EXCEPT where I can get into the events somewhere to programmatically decided whether to actually perform the link request, or...
0
550
by: Ryan Harvey | last post by:
Hi all, I have written a web user control that contains a repeater control. the ItemTemplate for this control is basically 6 Hyperlinks in a row, that are dynamically allocated one of 7 gif...
1
1652
by: Joshua Weir | last post by:
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...
5
2067
by: JerryK | last post by:
Hi, I am trying to put a hyperlink to a .cer (certificate) file on a form. Normally (on a ,htm page) when the user clicks on the hyperlink, the file is not recognized and the user is given the...
19
3463
by: Joe | last post by:
I have an aspx page (referred to here as page_1) with a datagrid whose first column contains hyperlinks. When a user clicks one of these hyperlinks, he will navigate to another aspx page (referred...
4
6466
by: sulemanzia | last post by:
I have a form with a Command button. i have a text box also which is bound to my Button. i have created a standard module and created an onclick event for my button which is something like this (...
7
1814
by: Arpan | last post by:
Both the Hyperlink web server control & the LinkButton web server control display text as links; so what are the differences between the 2 web server controls? Thanks, Arpan
2
2796
by: BobLaughland | last post by:
Hi There, I need a control on my site that is a hyperlink style control, but it must, 1) Have a property that can hold where the hyperlink is pointing to. (e.g. like the NavigateUrl property...
1
3751
by: sivasrec | last post by:
Hi, This is sivakumar from India. Now I am learning to ASP.NET 2.0.. I have a doubt.... I have used in a one hidden field control, 2 label controls, 2 button controls and...
0
7121
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7162
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7197
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6881
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4899
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.