Friday, September 3, 2010

HyperLink Server Control

by Emmaneale Mendu, Web Developer

The HyperLinke Server Control enables you to programmatically work with any hyperlinks on your Web pages. Hyperlinks are used to transfer users to one page to another.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head runat="server">
<title>HyperLink Example</title>
<form id="form1" runat="server">
<asp:HyperLink runat="server" Text="Go to Default Page" NavigateUrl="~/Default.aspx"></asp:HyperLink>
<%-- You Can Add Image to your HyperLink --%>
<asp:HyperLink ID="HyperLink1" ImageUrl="~/desibindaas.jpg" NavigateUrl="~/Default.aspx"

No comments:

Post a Comment