Monday, 21 May 2012

ASP.NET Hyperlink SERVER CONTROL | Navigate URL | Redirects to New URL

Paste Into ASPX Source

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="hyperlink.aspx.cs" Inherits="hyperlink" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>ASP.NET EXAMPLES | Hyperlink SERVER CONTROL | Navigate URL | Redirects to New URL</title>
</head>
<body>
<form id="form1" runat="server">
<center>
<div style="border: 2px; font-size:12px; border-color: Black; border-style: solid; color: White;
background-color: Red; font-weight: bold; font-family: Tahoma"
>
By : <a href="http://asp-examples.blogspot.com/" style="color:Yellow" target="_search">asp-examples</a>
(Click to get more Asp.net Examples)
<br />
Author : Akash Parmar<br />
Company Name : Soft-Tech Designs n Development<br />
We Design your Dreams - Develop your Life...
</div>
<div>
<h4>
ASP.NET Hyperlink Control Example - Navigate URL - Redirects a client to specified URL
</h4>
</div>
<center>
<div>
<br /><br />
1) Redirects in new Tab or Window :
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="http://google.co.in" Target="_blank">Click Here To Go To Google - Target - Blank >></asp:HyperLink>
<br /><br />
2) Redirects in Same Tab or Window :
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="http://google.co.in" Target="_parent">Click Here To Go To Google - Target - Parent >></asp:HyperLink>
</div>
</center>
</form>
</body>
</html>

3 comments:

ellieshilton said...

I’m seriously happy to discover this great site the future of this blog is getting good and more useful for me thanks and god bless you.
IT Learning

aspexamples said...

Thank you ellieshilton
I m so happy for your nice comments...

Albert Andrada said...

Really Nice Information,Thank You Very Much For Sharing.
Web Development Company

Post a Comment

 
Ranking Website Directory | seo tool | Manoli | ASPDOTNETGUIDE