I am creating a menu with the selected item highlighted. The code on aspx page is like this:
<div id="Div6" runat="server" class="navLinkFrame2"><a href = "c1.aspx">Chapter1</a></div>
<div id="Div7" runat="server" class="navLinkFrame2"><a href="c2.aspx">Chapter2</a></div>
<div id="Div8" runat="server" class="navLinkFrame2"><a href="c3.aspx">Chapter3</a></div>
I want to highlight a tab based on the chapterNum value, so I trying to change the class to "navLinkFrame2-on" in the aspx.cs file.
I tried this but doesn't work.
public partial class Quiz1
{
static String chapterNum = "";
//...other static vars
protected void Page_Load(object sender, EventArgs e)
{
Go to the complete details ...