Posted on: 4/8/2014 6:47:43 PM | Views : 373


Dear Friend,
I am facing one strange behavior in my ASP.net (Web Form) web application. I have created one PageBase class (PageBase.cs) and I am implementing this in my all web page (code behind class). Actually I am hiding/showing a particular button control in each page based on some condition so implemented that logic in PageBase class on "OnPreRender" event. I am recurssively searching that button in each page and performing action. This functionality is working perfectly when I run application through code but same functionality stops working after deployment on web site (under IIS). I am not sure why this behavior is happenning. My sample code is below. Could you please tell me what could be possibility. Thanks for your support in advance.
PageBase.cs
===========
public class PageBase : System.Web.UI.Page {         protected override void OnPreRender(EventArgs e)       &n ...

Go to the complete details ...