473,378 Members | 1,721 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,378 software developers and data experts.

What's a good way to store the info in a multi-stage form?

Hello,

I am designing a form that allows people to request the formation of a
limited company. When they fill in the form, they have to supply a
certain amount of information relevant to their choice (company name,
address, various other options). I was thinking about doing this with a
wizard control as that allows me to split the form into manageable
chunks.

One of the features is that they can optionally specify a number of
people to be the company's directors. I am trying to work out the best
way of doing this. Basically, for each director, I need to show the same
subform, where they enter the person's details. Trouble is, I can't just
rely on the normal view state to save this info as I can with other
controls on the form, as there could be any number of directors.

Any suggestions about how to store the info? I thought about writing a
Director class, and creating an instance of this for each director
entered. Is this sensible? Is there a better way? How do I store the
objects in view state?

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Jun 5 '06 #1
2 1340
You could use a data repeater control and create an "Add Director"
button on the form. Then, during postback, you can put add the new
director, with blank text boxes, to the data repeater along with a
"Save" button (code would probably make this easier to follow, right?).
Curtis

Alan Silver wrote:
Hello,

I am designing a form that allows people to request the formation of a
limited company. When they fill in the form, they have to supply a
certain amount of information relevant to their choice (company name,
address, various other options). I was thinking about doing this with a
wizard control as that allows me to split the form into manageable
chunks.

One of the features is that they can optionally specify a number of
people to be the company's directors. I am trying to work out the best
way of doing this. Basically, for each director, I need to show the same
subform, where they enter the person's details. Trouble is, I can't just
rely on the normal view state to save this info as I can with other
controls on the form, as there could be any number of directors.

Any suggestions about how to store the info? I thought about writing a
Director class, and creating an instance of this for each director
entered. Is this sensible? Is there a better way? How do I store the
objects in view state?

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)


Jun 5 '06 #2
In article <11**********************@h76g2000cwa.googlegroups .com>,
Curtis <cu**********@hotmail.com> writes
You could use a data repeater control and create an "Add Director"
button on the form. Then, during postback, you can put add the new
director, with blank text boxes, to the data repeater along with a
"Save" button (code would probably make this easier to follow, right?).
I understand what you mean, but I'm not sure if this is the best way to
do it. When I said there could be any number of directors, I should have
said that in practice there are rarely more than about three or four. A
repeater might be over the top.

Presumably your suggestion still leaves me with the question of how to
store the data. There would be too much to rely on showing it all in the
data repeater.

I was thinking about having an array (array list, collection, whatever)
of the director objects, and just adding to the array whenever a new one
were added. Does that make sense? If so, how do I store the array in
viewstate?

Thanks
Curtis

Alan Silver wrote:
Hello,

I am designing a form that allows people to request the formation of a
limited company. When they fill in the form, they have to supply a
certain amount of information relevant to their choice (company name,
address, various other options). I was thinking about doing this with a
wizard control as that allows me to split the form into manageable
chunks.

One of the features is that they can optionally specify a number of
people to be the company's directors. I am trying to work out the best
way of doing this. Basically, for each director, I need to show the same
subform, where they enter the person's details. Trouble is, I can't just
rely on the normal view state to save this info as I can with other
controls on the form, as there could be any number of directors.

Any suggestions about how to store the info? I thought about writing a
Director class, and creating an instance of this for each director
entered. Is this sensible? Is there a better way? How do I store the
objects in view state?

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)


--
Alan Silver
(anything added below this line is nothing to do with me)
Jun 5 '06 #3

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

Similar topics

6
by: cody | last post by:
What are multi file assemblies good for? What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a single multi file assembly (A.DLL+A.NETMODULE)?
2
by: Sandman | last post by:
Just looking for suggestion on how to do this in my Web application. The goal is to keep track of what a user has and hasn't read and present him or her with new material I am currently doing...
46
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Group, After a long week end I am back again. Its nice and refreshing after a short vacation so lets get started with .NET once again. Today we will discuss about Isolated Storage. This is...
4
by: Robert P. | last post by:
I can easily store a one-dimensional array in viewstate ( see Test1 ) If I try storing a multi-dimensional array in the viewstate it's crapping out on me when it goes to serialize the array (not...
14
by: Rudy | last post by:
Hello all! I been trying to get a handle with Images. I have learned alot from the fine people here. So, I also learned that thumbnail images look terrible taken from a digital cam. I know why...
2
by: Benoit Martin | last post by:
I'm developping a windows app that will be sold to different clients. The app connects to a Database located on my server. That app is installed on multiple machines for each client. Each client...
19
by: Charles Law | last post by:
Take a solution with a project hierarchy along the lines of an n-tier system, so that we have a data layer, business layer and presentation layer. The presentation layer is coupled to the business...
14
by: Rich | last post by:
Yes, I need to store some values in an array type collection object that can hold 3 or more parameters per index. I have looked at the collection object, hashtable object and would prefer not to...
18
by: google.1.jvmail | last post by:
I have over 10 years strong experience coding in VBA, developing complex multi-user applications in MS Access (all versions), have worked with security, replication, and whole bunch of other...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.