Hi there,
I have 2 master pages, I want to hide tblEdit (Table) when the master page is MSP.master.
I used tblEdit.Style.Add("Display", "none");
But It doesn't work with Page_PreInit !!!
protected void MSPButton_Click(object sender, ImageClickEventArgs e)
{
this.Session["master"] = "MSP";
tblEdit.Style.Add("Display", "none");
this.Server.Transfer(this.Request.RawUrl);
}
protected void Page_PreInit(object sender, EventArgs e)
{
if (this.Session["master"] != null)
{
string strMaster = string.Format("~/Masters/{0}.master", (string)this.Session["master ...
Go to the complete details ...