•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,507 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,656 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1410 | Replies: 1
![]() |
•
•
Join Date: Sep 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hello,
I am developing an application in which I need multiple textboxes on the fly and one hidden text box for each textbox.
I am having problem in trapping the changed value at postback. Also there are conditions according to that the textboxes are being created means in many cases all the conditions are not matched and not all the textboxes are created and for that I have to get ids of textboxes.
That’s the problem for which I need solution.
I am developing an application in which I need multiple textboxes on the fly and one hidden text box for each textbox.
I am having problem in trapping the changed value at postback. Also there are conditions according to that the textboxes are being created means in many cases all the conditions are not matched and not all the textboxes are created and for that I have to get ids of textboxes.
That’s the problem for which I need solution.
•
•
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation:
Rep Power: 7
Solved Threads: 59
How much do you know about the ASP.NET page life-cycle? I suspect that is where you are struggling. If you are creating WebControls on the fly, to capture events from them they have to be re-created on postback *before* viewstate is access to assign all the values to the controls on the form. This means PageLoad is too late, you need to place code in PageInit.
Here's a handy link that explains things better:
http://aspnet.4guysfromrolla.com/articles/092904-1.aspx
Here's a handy link that explains things better:
http://aspnet.4guysfromrolla.com/articles/092904-1.aspx
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- MultiLine TextBoxes in GridView edit mode (ASP.NET)
- Select Box populates text field (JavaScript / DHTML / AJAX)
- dynamically generated textboxes & radio buttons php, insert into db (PHP)
- Dynamic web pages? Which will exist? (IT Technologies and Trends)
- Core PHP Programming to Build Dynamic Websites (PHP)
- Data Navigation in textboxes with ADO.NET (like ADO) (ASP.NET)
- Dynamic Drive Overlay Win98 80 gig support (Windows 9x / Me)
Other Threads in the ASP.NET Forum
- Previous Thread: Getting ASP websites online
- Next Thread: linking of two aspx file



Linear Mode