473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Wizard Control IsPostBack and Method Issues

Two (hopefully) quick questions for you all:

1. Is there any way within a Wizard Step to programmatically determine
whether or not a postback has occurred? It appears as though, after the
first step, you are always posting back (which makes sense). However,
there are plenty of times when you would want to only execute code if
the Wizard Step is being loaded for the first time. I'm getting around
this by using some hidden fields, but there must be a better way.

2. Every time I load any step in my Wizard Control, the Load methods
for EVERY Wizard Step are being executed! Of course the content isn't
displayed for all of the steps, but all of the sql queries are being
run and I have to put conditionals everywhere to make sure nothing
bombs out (because the queries are expecting data from previous steps
etc). Again, something I'm missing, or is this by design? Why would all
of those Load methods be executed?

Thanks in advance for any help!

Rob

Dec 29 '05 #1
1 1659
Regarding #2 below, in case anyone else was as confused as I was (am):

Don't use the Load event for your steps, use the Activate event.
rd*****@gmail.com wrote:
Two (hopefully) quick questions for you all:

1. Is there any way within a Wizard Step to programmatically determine
whether or not a postback has occurred? It appears as though, after the
first step, you are always posting back (which makes sense). However,
there are plenty of times when you would want to only execute code if
the Wizard Step is being loaded for the first time. I'm getting around
this by using some hidden fields, but there must be a better way.

2. Every time I load any step in my Wizard Control, the Load methods
for EVERY Wizard Step are being executed! Of course the content isn't
displayed for all of the steps, but all of the sql queries are being
run and I have to put conditionals everywhere to make sure nothing
bombs out (because the queries are expecting data from previous steps
etc). Again, something I'm missing, or is this by design? Why would all
of those Load methods be executed?

Thanks in advance for any help!

Rob


Dec 30 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kris van der Mast | last post by:
Hi, been a while since I posted a question myself instead of trying to help others out. I'm refactoring an existing web app that uses dynamic loading of user controls and a lot of...
1
by: Gopal Krish | last post by:
I'm have coded a simple menu (using link buttons as menu items) in a user control to be reused across many ASPX pages. In the page_load method I dynamically create the link buttons as follows ...
4
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
0
by: Bill Gauvey | last post by:
I have a wizard control on a page with the first two setps are static, created in the VS2005 UI; the remaining steps are created dynammically. For some reason I cant get it to retain in the...
4
by: Dabbler | last post by:
I have a Wizard control with each step using a user control. It seems the page_load of each user control is called everytime a postback event occurs in any step. Is there away to communicate to a...
5
by: Nick Gilbert | last post by:
Hi, I'm using the asp:Wizard control and on some of the steps, I would only like the user to be able to progess to the next step by clicking an image button. Therefore I would like to be able to...
2
by: GaryDean | last post by:
In this event I can tell where I'm going via e.NextStepIndex but how can I tell where I am coming from? Do I have to setup Session and track it myself? -- Regards, Gary
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
3
by: Allen Chen [MSFT] | last post by:
Hi Richard, Quote from Richard================================================== However I also want to be able to remove the panes. I have tried to include this, but find that when I first...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.