Last active
August 29, 2015 14:01
-
-
Save zaigham/b3fb70aa2a5300454412 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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