473,785 Members | 2,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a wizard like interface.

I need to create a wizard like interface where a person picks an item on the
first page, then goes to the next page, makes a choice there, .... Ideally it
will need to be user object because of other stuff going on the page.

I'm looking for suggestions on how to do this. Should each 'page' be a
seperate user object or can I somehow bundle them all on the same page and
make things visible/invisible.

Any suggestions would be appreciated.

Jeffrey.
Nov 19 '05 #1
4 1365
Hi Jeffrey,

When I need to do this, I use an asp:panel control for each "page", and have
a table as follows

<table>
<asp:panel id="1">
page 1 stuff
</asp:panel>
<asp:pane id="2">
page 2 stuff
</asp:panel>
<tr>
<1-- next / back buttons here -->
</table>

And make the handlers from the next/back buttons show/hide the relevant
panels. Only thing u need to be aware of is if ur wizard has a welcome u need
to turn off any validation until they change pages, cos otherwise they cant
click next!

HTH
Dan

"Net Developer" wrote:
I need to create a wizard like interface where a person picks an item on the
first page, then goes to the next page, makes a choice there, .... Ideally it
will need to be user object because of other stuff going on the page.

I'm looking for suggestions on how to do this. Should each 'page' be a
seperate user object or can I somehow bundle them all on the same page and
make things visible/invisible.

Any suggestions would be appreciated.

Jeffrey.

Nov 19 '05 #2
User Controls can be dynamically loaded (via code).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Net Developer" <Ne**********@d iscussions.micr osoft.com> wrote in message
news:66******** *************** ***********@mic rosoft.com...
I need to create a wizard like interface where a person picks an item on
the
first page, then goes to the next page, makes a choice there, .... Ideally
it
will need to be user object because of other stuff going on the page.

I'm looking for suggestions on how to do this. Should each 'page' be a
seperate user object or can I somehow bundle them all on the same page and
make things visible/invisible.

Any suggestions would be appreciated.

Jeffrey.

Nov 19 '05 #3
Jeffrey,

Agreed that panels are a good way to go. The gist is that because the whole
thing is one "page," you can use viewstate, etc., and if the user does a
reload they'll start over at the beginning. But, if you have a lot on each
panel, the html can get a little messy. You might consider instead a user
control for each one, and set each one's visible=true/false as needed, just
as you'd do for the panels, or you can combine user controls and panels. One
thing re user controls I can't swear to but appears to be true: each one's
init/load will be executed regardless of whether it's visible, so think twice
about any code you put behind there (in the best case you might do
unnecessary work in the invisible ones, but in the worst you might generate
exceptions by talking to controls that won't be rendered, etc.).

Bill

"Net Developer" wrote:
I need to create a wizard like interface where a person picks an item on the
first page, then goes to the next page, makes a choice there, .... Ideally it
will need to be user object because of other stuff going on the page.

I'm looking for suggestions on how to do this. Should each 'page' be a
seperate user object or can I somehow bundle them all on the same page and
make things visible/invisible.

Any suggestions would be appreciated.

Jeffrey.

Nov 19 '05 #4
Yes Bill, they do initialise. I've had that one happen on me before!

"Bill Borg" wrote:
Jeffrey,

Agreed that panels are a good way to go. The gist is that because the whole
thing is one "page," you can use viewstate, etc., and if the user does a
reload they'll start over at the beginning. But, if you have a lot on each
panel, the html can get a little messy. You might consider instead a user
control for each one, and set each one's visible=true/false as needed, just
as you'd do for the panels, or you can combine user controls and panels. One
thing re user controls I can't swear to but appears to be true: each one's
init/load will be executed regardless of whether it's visible, so think twice
about any code you put behind there (in the best case you might do
unnecessary work in the invisible ones, but in the worst you might generate
exceptions by talking to controls that won't be rendered, etc.).

Bill

"Net Developer" wrote:
I need to create a wizard like interface where a person picks an item on the
first page, then goes to the next page, makes a choice there, .... Ideally it
will need to be user object because of other stuff going on the page.

I'm looking for suggestions on how to do this. Should each 'page' be a
seperate user object or can I somehow bundle them all on the same page and
make things visible/invisible.

Any suggestions would be appreciated.

Jeffrey.

Nov 19 '05 #5

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

Similar topics

3
23435
by: Hal Vaughan | last post by:
I'm creating a sequence of JPanels that will each, in turn, be added to (then removed from) a window (kind of like a wizard). I want these panels to not only extend the JPanel class, but to implement an interface. I have the interface defined in a separate class, like this: public interface IPanel { boolean onNext(); String nextPanel(); boolean hasCancel();
3
2124
by: David C. Allen | last post by:
I am following thru the examples in the book I am studying for my MCSD. This is the web applications book. One example is to use the data form wizard to create a simple data form on the northwind customers table.When I try to run the code after the wizard has generated the form I get several compile errors like this: D:\Projects\DOTNET\MCSD\70-305\305C05\dsCustOrders.vb(86): Reference required to assembly 'System.Xml' containing the...
7
1690
by: Mr. Mountain | last post by:
Hi, I am building a custom wizard engine in C# following the example in "Mastering Visual Studio.NET" by Griffiths, Flanders and Sells (pg 304). Unfortunately, I'm having several problems that the book isn't helping me overcome. (It is a good book, but O'Reilly hasn't made code available and so far not a single example I've tried from the book has worked!) To build a COM server in C# that implements the IDTWizard interface, does the...
2
2577
by: Derrick | last post by:
Is there an implement interface wizard is C#/Visual Studio? And, I have an interface, with many implentations, want to provide a Web Service implementation. What would be the standard practice? Implement the interface in the main asmx class? Or just have all interface methods available, but without explicitly implementing it? Thanks in advance! Derrick
15
6751
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use javascript or vbscript it works. I will appreciate any help. I do the following (C#):
3
2037
by: Dave | last post by:
I've run across a strange error when creating a simple ADO.Net connection in VB.Net 2003 To replicate an error: Create an Access database (2002) with table named "Student" and fields SID (Autofill), FirstName and LastName. Put some dummy data in table. Start a new VB.Net application, create a new connection to your
2
2841
by: ValK | last post by:
Hello All. I have a windows service, that monitors file directory. Now I'm trying to create custom install wizard for this service. I added projectinstaller class to my application, where I specified properties like ServiceName, DisplayName and so on. What I like to do, is to add one more dialog screen with the test box and "Browse" button to the installation wizard and provide user with the ability to select/change service monitoring...
8
7479
by: redeagle | last post by:
I'm wondering what the best practice is for creating a WinApp "wizard" that contains 4 or 5 "steps". Options so far are 1) Single WinForm making various controls visible/non visible at the different steps(although that may get cluttered in the design environment) 2) Create multiple WinForms (don't really know any pros or cons of this method) 3) Use a tabbed page (although I don't want to see any tabs)
0
1066
chandru8
by: chandru8 | last post by:
hi to all iam using vb6.0 i tried to add ActiveX Control Interface Wizard in add-in manager but there is no ActiveX Control Interface Wizard in the add-in manager how to include ActiveX Control Interface Wizard i found in the net like this 1. Open the project you wish to convert. 2. On the Add-Ins menu, click Add-In Manager. 3. Highlight "VB ActiveX Document Migration Wizard", click the desired behaviors in Load Behavior, and then...
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10087
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.