Hi Gg,
Hope, to increase the page you mean fast download of the page or improve the performance of the page.
To improve the performance of the page you need to ensure following
1. you are using less viewstate, if viewstate is not required for a particular asp.net control disable it.
2. use html control if possible instead of using asp.net server control (eg. use anchor tag instead of asp:hyperlink)
3. use less session, if you are using session see if you can decrease the amount of data you are storing into the session.
4. efficiently write the code (do not declare unnecessary variables etc.)
There are many more points that can be suggested after seeing your code however above are few that are important and should help you increasing the performance of the page.
The difference between Session and ViewState
Session variable is used to store user specific data that can be accessed from any page. ViewState is also used to store data however it can be accessed on the page (in postback) where it was created (this is the very basic difference between session and viewstate).
Use of global.asax
Global.asax file is used to catch the application level event and perform operations (like application_start, session_start etc.)
Hope above will help you.
Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Gg, if this helps please login to Mark As Answer. | Alert Moderator