Page_Load event

R

Roger

My page_load event doesn't fire if I close my browser and reopen it to the
same page. Any reason why? Is there something I need to set in my
web.config or global.asax? Right now, I don't have anything in either of
those files?

Thanks,


Roger
 
Y

yj

Roger,

Is your app an inline ASP.NET application (i.e., developed using NOTEPAD) or
is it a full code-behind app developed using Visual Studio, Web Matrix or C#
Builder?

If it's an inline app, then you need to set the AutoEventWireup attribute of
the @Page directive to "true." This will automatically wireup the OnPageLoad
event and its associated Page_Load() method (as well as the other "well known"
named events/methods, such as Page_Init.)

That could be the issue, but I would need to see your specific code.

Note: for code-behind apps, leave AutoEventWireUp set to "false". Otherwise
your Page events will fire twice.

- - Jerry Bucknoff

http://www.setfocus.com/Place/info/Print.asp?CID=40306
Jerry Bucknoff, MBA, is Management Consultant in New York City.
Dr. William Reisel, MBA, PhD, is associate professor of management /
organizational behavior at The Zicklin School of Business, Baruch College, The
City University of New York.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top