private HtmlGenericControl prev = null;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void home_button_Click(object sender, EventArgs e)
{
list_home.Attributes["class"] = "active";
if(this.prev != null)
{
prev.Attributes["class"] = "";
}
prev = list_home;
Response.Redirect("home.aspx");
}
protected void catalog_button_Click(object sender, EventArgs e)
{
list_catalog.Attributes["class"] = "active";
if (this.prev != null)
{
prev.Attributes["class"] = "";
}
prev = list_catalog;
Response.Redirect("catalog.aspx");
}
protected void purchase_Click(object sender, EventArgs e)
{
list_purchase.Attributes["class"] = "active";
if (this.prev != null)
{
prev.Attributes["class"] = "";
}
prev = list_purchase;
Response.Redirect("purchase.aspx");
}
}
private HtmlGenericControl prev = null;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void home_button_Click(object sender, EventArgs e)
{
list_home.Attributes["class"] = "active";
if(this.prev != null)
{
prev.Attributes["class"] = "";
}
prev = list_home;
Response.Redirect("home.aspx");
}
protected void catalog_button_Click(object sender, EventArgs e)
{
list_catalog.Attributes["class"] = "active";
if (this.prev != null)
{
prev.Attributes["class"] = "";
}
prev = list_catalog;
Response.Redirect("catalog.aspx");
}
protected void purchase_Click(object sender, EventArgs e)
{
list_purchase.Attributes["class"] = "active";
if (this.prev != null)
{
prev.Attributes["class"] = "";
}
prev = list_purchase;
Response.Redirect("purchase.aspx");
}
}