Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Aut populate text boxAut populate text box
Previous
 
Next
New Post
6/27/2008 2:56 PM
 

Hi all,

i am trying to make a web based form in asp.net. When  the user clicks on a item from a pull down , i want it to be listed in a dynamically generated box along with a check box next to it for approvals. e.g. if the user selects 5 items then i want all the 5 items listed in a column with check boxes next to them.

i am absolutely new to asp.net , so any help would be really appreciated.

Thanks

 
New Post
6/27/2008 7:02 PM
 

Well, as you state you are new to .net I am afraid there is no short answer to your question but maybe I can point you in the right direction.

Create a ASP placeholder on you page and on the SelectedIndexChanged event for the dropdownlist add a textbox and checkbox to it.

For example like this:

                TextBox mytextbox = new TextBox();
                mytextbox.ID = "txt1";
                PlaceHolder.Controls.Add(mytextbox);

Make sure you create a unique ID for each control which you will need when the time comes to read data from it. You can access the control by using 

TextBox mytextbox = PlaceHolder.FindControl("txt1");

In order for these dynamically added controls to maintain it´s viewstate you could use this control this is a special placeholder which maintains viewstate after postback so any values entered in them will be available after postback.

I know this is a very short description of what is needed but maybe it will help you in the right direction.

Stephan
Dotnetnuke Module

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Aut populate text boxAut populate text box


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out