I am creating a table through the codebehind with info from a XML string. I would like to create a link from the text in one of the cells.
Here is the best example that I came up with of what I need to do:
[code=C#]
string linkstring = "<a href=\"http://website.com?Tra ckingNum=" + sArray[TrackNum] + ">" + sArray[TrackNum] + "</a>";
TrackDetailsCel l.InnerText = linkstring;
//or
TrackDetailsCel l.InnerHtml = linkstring;
[/code]
I need to have some info in the link so that another page can pull the values from the query string. Any ideas of how to get this to work? Thanks.
Here is the best example that I came up with of what I need to do:
[code=C#]
string linkstring = "<a href=\"http://website.com?Tra ckingNum=" + sArray[TrackNum] + ">" + sArray[TrackNum] + "</a>";
TrackDetailsCel l.InnerText = linkstring;
//or
TrackDetailsCel l.InnerHtml = linkstring;
[/code]
I need to have some info in the link so that another page can pull the values from the query string. Any ideas of how to get this to work? Thanks.
Comment