Monday, August 28, 2006

Using a Literal control

litLinks is a LITERAL CONTROL declaration:

protected System.Web.UI.WebControls.Literal litLinks;


// declare string
string strLinks;

// Put HTML into the string
strLinks = "[a href ='TPPMain.aspx?requestId=" + strRequestId + "&view=qual']Qualification[/a]&nbsp[a href ='TPPMain.aspx?requestId=" + strRequestId + "&view=unit']Units[/a]";

// add the string to the literal control
litLinks.Text = strLinks;

No comments: