Re: Page_Load & ButtonClick?
- From: "Arpan" <arpan_de@xxxxxxxxxxx>
- Date: 25 Jul 2006 18:55:26 -0700
Set your breakpoint and press F5. Stepping works as it did in VB 6.0.
When should F5 be pressed? I set a breakpoint for a sub named btn_Click
(Click event function of a Button). After running the ASPX page in the
browser & without clicking the Button, I came back to the VWD IDE &
pressed F5 but that didn't do the stepping! I again went back to the
browser, clicked the Button, came back to the VWD IDE & pressed F5 but
that didn't step over the code. I even tried pressing F5 in the VWD IDE
without running the ASPX page in a browser but that didn't step over
the code as well. At what point should I press F5?
Arpan
Scott M. wrote:
Set your breakpoint and press F5. Stepping works as it did in VB 6.0.
"Arpan" <arpan_de@xxxxxxxxxxx> wrote in message
news:1153868960.680505.239510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Scott, thanks for the response. Prior to posting my query, I had tried
setting breakpoints but I guess breakpoints in Visual Web Developer
2005 doesn't work in the same way as how breakpoints work in VB6.
In VB6, suppose a breakpoint is set on the Click event function of,
say, a CommandButton. Now as soon as the CommandButton is clicked when
the app is executed from the VB IDE, focus shifts back to the VB IDE &
pressing F8 steps over each & every line within the Click event
function of the CommandButton but setting a breakpoint on a sub in the
VWD IDE doesn't behave in the same way. The focus doesn't shift back to
the VWD IDE; in fact nothing happens when a sub which has been
"breakpointed" gets executed when the ASPX page is run in IE (or any
other browser) from the VWD IDE (by clicking the "View in Browser"
button).
So how do I step over each & every line within a sub in VWD? In other
words, how do I utilize the breakpoint feature in VWD 2005?
Thanks once again,
Regards,
Arpan
P.S.: Are you Scott Mitchell, by any chance?
Scott M. wrote:
A simple test would be to set breakpoints in each event handler and see
for
yourself that Page_Load executes first.
"Arpan" <arpan_de@xxxxxxxxxxx> wrote in message
news:1153865604.974388.284090@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
When a Button is clicked in a Web Form in an ASPX page, the Form will
post back to itself. Under such circumstances (i.e. when a Button is
clicked), will the Page_Load sub execute first & then will the Click
event function of the Button execute or will the Click event function
of the Button execute first & then will the Page_Load sub execute?
Thanks,
Arpan
.
- Follow-Ups:
- Re: Page_Load & ButtonClick?
- From: Scott M.
- Re: Page_Load & ButtonClick?
- References:
- Page_Load & ButtonClick?
- From: Arpan
- Re: Page_Load & ButtonClick?
- From: Scott M.
- Re: Page_Load & ButtonClick?
- From: Arpan
- Re: Page_Load & ButtonClick?
- From: Scott M.
- Page_Load & ButtonClick?
- Prev by Date: Dynamically build a repeater without a dataset
- Next by Date: Re: Selecting the Folder from file manager in asp.net
- Previous by thread: Re: Page_Load & ButtonClick?
- Next by thread: Re: Page_Load & ButtonClick?
- Index(es):