Click here to Skip to main content
13,191,400 members (61,239 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am doing a project in which i need to create some dyamic text boxes . user selects how many textboxes he want to create and clicks a button(say button1) to generate desired no of text boxes.
There is another button(say button2) that saves these values to data base.
Now picture is : although i am able to generate controls on button1 click event yet i am unable to fetch these values on
button2 click event.
Please provide me full code.

Posted 27-Jan-13 22:26pm
Hariharan Arunachalam 28-Jan-13 4:31am
Could you elaborate on 'which' value you are not able to fetch? The values in the text boxes that the user types in later? You might have to store a reference of the control when you create them...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Trilochan Tripathi 28-Jan-13 5:10am
i had already checked it. its only conceptual landmarks . so no benifit
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Use PlaceHolder and add your controls in it. Then while saving data pass this placeholder control to save function where you are writing code for saving the data.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171017.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100