I created a page class which is a custom class derived from System.Web.UI.Page.
and all the web pages in my application are derived from this page class only. so that any theme/culture settings done in page class will effect to all web pages in my application. you can understand more clearly by observing the below code.
public class Page : System.Web.UI.Page
protected void Page_PreInit(object sender, System.EventArgs e)
this.Theme = Session[SessionData.Logged
protected void Page_Preload(object sender, EventArgs e)
public partial class OrderSurveys : Survey.Code.Utilities.Page
here the OrderSurveys is my web page.
what my problem is suppose when i request OrderSurveys.aspx Page_PreInit and
Page_Preload events of pages.cs are calling properly. I checked this by putting break points in vss. i copied the url(http://localhost/surveys/OrderSurveys.aspx
) and requested some other aspx page. now pasted the url which i have copied previously and clicked on go to. i navigated to OrderSurveys.aspx page but this time Page_PreInit and Page_Preload events of pages.cs are not firing. i want this events to be fire on every request made to OrderSurveys.aspx .
i think that caching is applied to OrderSurveys.aspx and i disabled the caching for the entire application using outputcache tag in web.config. But still my problem is not resolved.
the way i followed to disable caching is
<outputCache enableOutputCache="false" enableFragmentCache="false
Is my problem with caching or any thing else. provide me the best way to resolve my problem.