programmingsite : code , tutorials and scripts
Navigation

home


ASP
ASP.net
C
C++
C#
PHP
Java
JavaScript
Powershell
VB.net

Visual Basic


Resources
code
tutorials
training

Ads
Products

 

 

Hyperlink control example




Hyperlink control example

The following example shows how to use the hyperlink control . We will put a simple link on a page and when the user clicks on the link the site will open in a new window.


NavigateUrl is the link you wish to go to in this case http://www.programmingsite.co.uk.
Target specifies that this will open in a new window , this could be omitted.
The text programmingsite home page is the text displayed in the browser.

<%@ Page Language="C#" %>
<html>
<head>
<title>Hyperlink control example in ASP.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form runat="server" id="form1" name="form1">
<asp:hyperlink runat="server"
NavigateUrl = "http://www.programmingsite.co.uk"
Target ="_NewWindow">
programmingsite home page
</asp:hyperlink>
</form>
</body>
</html>

Go to the following link to see this example in action




Products
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals
Asp Studio 2005
Xtra PHP
Online PHP Script Encoder
Comparison

Links
Make money selling software
Uk shopping
UK price comparison
US price comparison
free articles
free stuff
Gambling resources
Software directory
XBox cheats and more
Sexy free wallpapers
Hosting resources
Nintendo Wii info
Beginners PHP
Health and fitness
Domain names
Dating site
Nintendo DS resources
Dropshippers
Maxi directory
Perfume and fragrances
PC shopping, tips and info
Magazine superstore

Ads