I'm creating a menu based on the user using the following code
System.Text.StringBuilder sb = new StringBuilder();
sb.AppendLine("<ul>");
if (!Page.IsPostBack)
{
foreach (DataRow row in datatable.Rows)
{
sb.AppendLine(String.Format("<li><a href= x.aspx?Name={0}&Short={1}&Long={2}></a></li>",
HttpUtility.UrlEncode(row["x_name"].ToString()),
HttpUtility.UrlEncode(row["x_short_name"].ToString()),
HttpUtility.UrlEncode(row["x_long_name"].ToString()),
row["x_short_name"].ToString()));
When the user selects an item from the menu the page is loaded using a querystring.
What i need to do is to give the item selected from the menu a class so that it can be set to active.
Not sure how to go about this. Thanks in advance