Active Server Pages Programming (ASP)/page_load event

Advertisement


Question
hi

i put some code in the page_load event , so that i want it to be excuted when the client visits that page

if the user visits the page for the first time , the code is excuted successfully , but I noticed that if the user visits the page for another time using the same explorer , then the page_load event does not excute

how could i solve it , i need that code to be excuted every visit

thanx

Answer
hi

if the user coming to the page it will fire Page_load event, if you resubmit the same page again, if you have ispostback validation it won't execute the code, otherwise it will execute the code.. check whether you have any enabled browser caching..

-srini

Active Server Pages Programming (ASP)

All Answers


Answers by Expert:


Ask Experts

Volunteer


Srini Nagarajan

Expertise

I can answer any kind of questions in ASP.NET, C#, VB.NET, SharePoint 2007, ASP, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience

Contact me if you need any custom development on ASP.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder.

©2012 About.com, a part of The New York Times Company. All rights reserved.