Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET3.5 C#
hi.......
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.
 
Thanks
Posted 27-Jan-13 23:26pm
Comments
Hariharan Arunachalam at 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
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Trilochan Tripathi at 28-Jan-13 5:10am
   
i had already checked it. its only conceptual landmarks . so no benifit
Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 240
2 DamithSL 200
3 Raul Iloc 185
4 Richard MacCutchan 175
0 OriginalGriff 5,130
1 DamithSL 4,197
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2014
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