I am having a problem with this control sturcture. I want to hide a
button if the session object is equal to "Staff". I am not getting an
error, the code simply does not work. Help appreciated.
<code>
void Page_Load(object sender, System.EventArgs e)
{
if (Session["WebUser"] == "Staff")
{
//Response.Write (Session["WebUser"]);
Button1.Visible = false;
}
if (!Page.IsPostBack)
{.........
</code>
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!