Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > dynamic controls in asp.net...please help...

Reply
Thread Tools

dynamic controls in asp.net...please help...

 
 
Irfan Akram
Guest
Posts: n/a
 
      12-13-2004
Hello People,

I would appreciate your responses on this.

I am writing an asp.net web-application involving C#. I am actually building
a test hierarchy at the moment, which involves producing dynamic controls,
depending on user response.

To be more precise, I prompt the user for the number of questions, that
should be in the test. He types in a number, say 10. Then I need to ask him
the details of the first question, i.e. number of sub-parts in question 1.
The user should be prompted to select through a radio button group, as to how
many sub-parts he wants to enter i.e. 0,1,2,3 or 4. Then following that I
will be asking him the same details for the number of sub-parts for the first
sub-part 1, i.e. 1.1. The maximum depth allowed will be 3.

After completing the details for the first question, I then need to prompt
the user to get details for the second question, and then the third, till the
end of the test. The maximum depth that the hierarchy goes to is 3, i.e.
something like 1.1.3 will be a valid question id, but not 1.1.3.2

As it turns out it is in effect a tree structure that I need to implement in
asp.net, depending on user input.

Now the problem is that I cannot do all this in a single loop, because I
need to handle each question at a time, and also remember what the user
entered, and then respond at each user-selection.

Any ideas how I can handle this ? Any ideas that you guys might have will be
appreciated.

Just to clarify my problem here is a simple diagram of a sample hierarchy.

Num Questions:- 4

Question 1 sub-parts: - 2
Question 1.1 sub-parts : 2 i.e. 1.1.1 and 1.1.2
Question 1.2 sub-parts: 2 i.e. 1.2.1 and 1.2.2

Question 2 sub-parts: - 2
Question 2.1 sub-parts : 2 i.e. 2.1.1 and 2.1.2
Question 2.2 sub-parts: 2 i.e. 2.2.1 and 2.2.2
..
..
..
..
..
Question 4 sub-parts.......
.....................................
.....................................






Regards,

Irfan
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Wizard with Dynamic Validation Controls =?Utf-8?B?U3RldmUgRnVuaw==?= ASP .Net 0 10-13-2006 05:40 PM
Dynamic Controls created by Dynamic Controls Ronald ASP .Net 2 01-17-2006 12:44 AM
Dynamic Events from Dynamic Controls on a User Control - Guess What? Broken! mytestemailaccount@gmail.com ASP .Net 5 03-23-2005 05:06 PM
Dynamic Variables? OR Dynamic Controls =?Utf-8?B?VGVyb3M=?= ASP .Net 1 08-10-2004 01:13 PM
Dynamic Controls, Placeholder, Retrieve Information from Dynamic Controls Denny Smolinski via .NET 247 ASP .Net Web Controls 1 05-04-2004 09:15 PM



Advertisments