.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old November 2nd, 2001, 06:48 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Help with retrieving values from dynamically added controls

Originally posted by : Aiden Montgomery (aidenmontgomery@hotmail.com)Sorry if this has been covered before but it is frustrating me. I am going to take a moment to set the scene. I have a page that has a textbox and a button on it. You enter a value in the textbox then click the button. The page reloads with the textbox and the button. Also now the page has generated a number of placeholders and entered tables into each one. Also another set of textboxes appear. The number of placeholders, and therefore tables, and extra text is determined by the number you entered into the textbox. The extra text boxes are for you to enter the number of cells you require in each of the sections. This is as far as I can get. I simply cannot find a way to get at the values which are typed into the generated textboxes and therefore cannot determine how many cells are required in the sections. What is it that I am over looking? I have tried accessing the controls through using the findcontrol and the ID which I have sepcified. Also I have tried to access them by using a foreach and going through the controls collection. I have managed to get the actual controls. However not the values which they hold. Using the stated methods I found my way to the actual control objects. Once there I cast them to (textbox) and then tried to access the textbox.value This returned nothing. I thought about the fact that because they were created dynamically they may have to be added to the page again after post back to be able to access them. This helped in no way at all. I also enabled viewstate and again nothing. Someone out there must know where I am going wrong. Aiden

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Help with retrieving values from dynamically added controls


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway