User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Sep 2007
Posts: 1
Reputation: alokdayal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
alokdayal alokdayal is offline Offline
Newbie Poster

dynamic textboxes

  #1  
Sep 28th, 2007
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: dynamic textboxes

  #2  
Sep 28th, 2007
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
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 3:42 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC