S
Steve Richter
I want my web page to display its contents in a step by step process.
step1: enter a zip code, click the "next step" button
in the NextStep button click event:
- retrieve info that pertains to the zip code
- make a "step2" label visible on the page
- fill the "step2" label with the zip code info
- make a "proceed to step3" button visible
- set the "CurrentStep" view state = "step2"
etc, etc
the problem is, the "next step" button click event executes after
PageLoad. Any changes this method makes to the Visible=true status of
a control does not take affect until the next post back cycle. At
least that is the way it appears.
I am aware I can use Response.Redirect to pass a querystring that holds
the step number, but that gets a bit involved because I want the page
to retain all the data calculated by each step.
I am also aware I can do something in PageLoad to determine what button
was clicked to Post the page, but having to do that makes no sense.
The click event handler is the place to handle click events, right?
also, I would like to know which asp control is best suited to this
type of an application, one where a succession of information is
unfurled to the user as they click on the page.
I am using the asp:Table control and setting each asp:TableRow to
visible as its turn comes up to be displayed. I would prefer a series
of DIVs with a <hr> between each DIV.
thanks,
-Steve
step1: enter a zip code, click the "next step" button
in the NextStep button click event:
- retrieve info that pertains to the zip code
- make a "step2" label visible on the page
- fill the "step2" label with the zip code info
- make a "proceed to step3" button visible
- set the "CurrentStep" view state = "step2"
etc, etc
the problem is, the "next step" button click event executes after
PageLoad. Any changes this method makes to the Visible=true status of
a control does not take affect until the next post back cycle. At
least that is the way it appears.
I am aware I can use Response.Redirect to pass a querystring that holds
the step number, but that gets a bit involved because I want the page
to retain all the data calculated by each step.
I am also aware I can do something in PageLoad to determine what button
was clicked to Post the page, but having to do that makes no sense.
The click event handler is the place to handle click events, right?
also, I would like to know which asp control is best suited to this
type of an application, one where a succession of information is
unfurled to the user as they click on the page.
I am using the asp:Table control and setting each asp:TableRow to
visible as its turn comes up to be displayed. I would prefer a series
of DIVs with a <hr> between each DIV.
thanks,
-Steve