Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to build a web form. A section on the form requires that a user enters at least one 2-tuple bit of information. To do this they are presented at first with 1 data bound control and one non bound control(drop down list and a text box) for them to fill in the information.

My problem is that they may want to enter more information so i came up with a button which they can click on once to add the two controls(drop down list and a text box) just under the two they've already filled on the web form. I've placed the controls in an updatepanel but I'm pretty much stuck in what to do next. Can anyone give me some pointers on what to do next?
Posted
Comments
Technoses 13-Jan-12 4:46am    
you should use gridview for update panel
or add by js and post value by hidden field
[no name] 13-Jan-12 7:39am    
Ridiculous. There is no need for GridView with four controls or hidden fields for anything.

1 solution

Hide the second controls by default then when clicking the button use JavaScript to show them. There is no need for a server call, and no need for an update panel.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900