The Link control represents a simple Link placeholder in the page. It has two
modes of use, you can set its Text property to the text you want it to
display or you can enclose it around normal HTML markup in the ASPX.
Qualifiers
Type
Name
Default
Description
string
id
""
Unique identifier within the page for the control
string
Class
""
A custom classname for the link
string
Text
""
The visible text that will appear on the page, this will not be HTML encoded before rendering.
string
OnClick
""
Inline Javascript onclick
bool
Enabled
true
Wether or not the control is enabled, mapped directly to the HTML Anchor Disabled property.
bool
Visible
true
Wether or not the control is rendered into the page's HTML.
using System;
using Chan;
public class MyPage : Chan.Page
{
protected Chan.Controls.Link lnkOne;
public void Page_Load()
{
lnkOne.Href = "http://google.co.uk/";
}
}