Hi
I have created one aspx page that have only 4 controls even my page loading time is not so consistence
can anybody suggest me to improve my pageloadig .....
i have tried on viewstate
is there any other idea....
thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
puram.santoshPosted Jul 6, 2006, 1:26 AM
1. First you create a Base page which is inherited from the System.Web.UI.Page class.
public class BasePage : System.Web.UI.Page
{
// ...Add Header and Footer Information here or any other information.
protected override void OnLoad(EventArgs e)
{
// ... add custom logic here ...
// Be sure to call the base class's OnLoad method!
base.OnLoad(e);
}
// ... You can
}
2. Then you create your all other page inherited from this BasePage.
public class CustomPage : BasePage // changed ": System.Web.UI.Page"
{
// ...
}
Base Pages are executed faster then User Controls.
Thanks & Regards,
Santosh
Mahesh ChandPosted Jun 20, 2006, 7:42 AM