Click here to Skip to main content
15,884,237 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: reponse .redirect problem Pin
venu6567-Apr-09 0:42
venu6567-Apr-09 0:42 
GeneralRe: reponse .redirect problem Pin
Christian Graus7-Apr-09 0:44
protectorChristian Graus7-Apr-09 0:44 
QuestionRegarding Regular Expression Pin
dayakar_dn7-Apr-09 0:10
dayakar_dn7-Apr-09 0:10 
AnswerRe: Regarding Regular Expression Pin
Christian Graus7-Apr-09 0:46
protectorChristian Graus7-Apr-09 0:46 
QuestionFile Upload Encryption Pin
vivek_r7-Apr-09 0:05
vivek_r7-Apr-09 0:05 
AnswerRe: File Upload Encryption Pin
anilpal7-Apr-09 1:13
anilpal7-Apr-09 1:13 
AnswerRe: File Upload Encryption Pin
Right Handed Monkey7-Apr-09 1:57
Right Handed Monkey7-Apr-09 1:57 
QuestionHow to Access user entered values from runtime generated textboxes Pin
krishnaveer6-Apr-09 23:50
krishnaveer6-Apr-09 23:50 
Hi!!

All I am developing a site using ASP.Net I want to develop a site that generates textboxes,lables,tablecells at runtime ie is from database itself depending on the no of rows in the table in database. That is to get as many textboxes as there are rows in table. What I am doing right now is creating new text boxes in the code and then adding them to the cells and rows of the table control.All it is I am doing on PageLoad event. This all works fine.

The problem comes when I have to extract data from the form which is entered by user and insert into databse table onClick event of button. As it is in other function I am not able to access textboxes and its properties on that event function code. How do I get the properties of the controls generated in runtime and placed on the Table control?

while on click to get value code are as fallows

string Value = string.Empty;
Table tbl = (Table)Panel1.FindControl("table123");
for (int i = 0; i < NumberOfControl; i++)
{
TextBox txt = (TextBox)tbl.FindControl("DynamicTextBox" + i.ToString());
Value = Value + txt.Text + "";
}
Label1.Text = Value;

krishna veer singh

AnswerRe: How to Access user entered values from runtime generated textboxes Pin
Christian Graus7-Apr-09 0:47
protectorChristian Graus7-Apr-09 0:47 
AnswerRe: How to Access user entered values from runtime generated textboxes Pin
Zia Ul Haq Soofi7-Apr-09 2:13
Zia Ul Haq Soofi7-Apr-09 2:13 
QuestionQuerystring? urgent Pin
Karthick_gc6-Apr-09 22:52
Karthick_gc6-Apr-09 22:52 
AnswerRe: Querystring? urgent Pin
Abhishek Sur6-Apr-09 23:03
professionalAbhishek Sur6-Apr-09 23:03 
GeneralRe: Querystring? urgent Pin
Karthick_gc6-Apr-09 23:13
Karthick_gc6-Apr-09 23:13 
GeneralRe: Querystring? urgent Pin
Zia Ul Haq Soofi7-Apr-09 0:12
Zia Ul Haq Soofi7-Apr-09 0:12 
AnswerRe: Querystring? urgent Pin
anilpal6-Apr-09 23:22
anilpal6-Apr-09 23:22 
GeneralRe: Querystring? urgent Pin
Karthick_gc6-Apr-09 23:47
Karthick_gc6-Apr-09 23:47 
GeneralRe: Querystring? urgent Pin
anilpal7-Apr-09 0:16
anilpal7-Apr-09 0:16 
AnswerRe: Querystring? urgent Pin
RyanMorris7-Apr-09 0:10
RyanMorris7-Apr-09 0:10 
AnswerRe: Querystring? urgent Pin
Christian Graus7-Apr-09 0:35
protectorChristian Graus7-Apr-09 0:35 
AnswerRe: Querystring? urgent Pin
Laddie7-Apr-09 2:03
Laddie7-Apr-09 2:03 
Questionyoutube video download Pin
SubarnaMishra6-Apr-09 22:51
SubarnaMishra6-Apr-09 22:51 
AnswerRe: youtube video download Pin
anilpal6-Apr-09 23:23
anilpal6-Apr-09 23:23 
GeneralRe: youtube video download Pin
SubarnaMishra6-Apr-09 23:30
SubarnaMishra6-Apr-09 23:30 
GeneralRe: youtube video download Pin
anilpal6-Apr-09 23:41
anilpal6-Apr-09 23:41 
GeneralRe: youtube video download Pin
SubarnaMishra7-Apr-09 1:51
SubarnaMishra7-Apr-09 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.