Home All Groups Group Topic Archive Search About

Where are the events of the aspx?

Author
10 Feb 2006 8:53 PM
Doru Roman
When creating a web application the default aspx is Form1.aspx. All the
controls I place on the document have, in the Properties window, the Event
button which changes the window to the available events for that control.
But how do I get the available events for the Form1, like PreRender? How can
I make them visible?
Thanks,
Doru

Author
10 Feb 2006 10:35 PM
Nathan Sokalski
If you right click the file in the Solution Explorer and select View Code it
will display a window that has two dropdown lists at the top, one to select
a Control and one to select an Event that the Control has. This file is the
CodeBehind file (it usually ends in .aspx.vb or .aspx.cs depending on what
language you are using). You can also double-click a Control (and keep in
mind that the Page is a control, so double-clicking anywhere is actually
double-clicking on a Control) to open this page and select the default even
for the Control you double-clicked (for example, the default event for Page
is Load, for Button it is Click, etc.). Hopefully this clears things up for
you.
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/

Show quoteHide quote
"Doru Roman" <doruro***@rogers.com> wrote in message
news:O9qPHQoLGHA.2704@TK2MSFTNGP15.phx.gbl...
> When creating a web application the default aspx is Form1.aspx. All the
> controls I place on the document have, in the Properties window, the Event
> button which changes the window to the available events for that control.
> But how do I get the available events for the Form1, like PreRender? How
> can I make them visible?
> Thanks,
> Doru
>
Author
10 Feb 2006 11:18 PM
Doru Roman
Thanks a lot