Skip to content

Instantly share code, notes, and snippets.

@zaigham
Last active August 29, 2015 14:01
Show Gist options
  • Save zaigham/b3fb70aa2a5300454412 to your computer and use it in GitHub Desktop.
Save zaigham/b3fb70aa2a5300454412 to your computer and use it in GitHub Desktop.
protected void Page_PreRender(object sender, EventArgs e)
{
int temp = Convert.ToInt32(leftnav.Count);
if (count == 0 && Convert.ToInt32(leftnav.Count) == 0)
{
contentright.Attributes["class"] = "center-part";
}
else if (count == 0 && Convert.ToInt32(leftnav.Count) != 0)
{
//contentright.Attributes["class"] = "content-right-part";
contentright.Attributes["class"] = "center-part";
}
else if (count != 0 && Convert.ToInt32(leftnav.Count) == 0)
{
//contentright.Attributes["class"] = "content-Left-part";
contentright.Attributes["class"] = "center-part";
}
else
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment