Click here to Skip to main content
11,802,762 members (69,330 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: .NET3.5 C# .NET
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 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
Please Sign up or sign in to vote.

Solution 1

Trilochan Tripathi at 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
0 KrunalRohit 366
1 OriginalGriff 365
2 F-ES Sitecore 295
3 CPallini 270
4 Sergey Alexandrovich Kryukov 239
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,695
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2015
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