Hi,
I'm creating dynamic textbox (Multiple textboxes) i need to fetch the values of that multiple textboxes. How can i achieve it? I'm creating dynamic textbox in C# code
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 11, 2014, 1:20 AM EDT
Dharani dharanRank #4,788 · 325 reputationPosted Mar 11, 2014, 9:51 PM EDT
Thanks for your help.
Am using asp.net web application. based on the count from database i need to dynamically generate label and Textbox and also i need to fetch the value from those corresponding Textbox.
selva kumarRank #2,987 · 483 reputationPosted Mar 11, 2014, 10:26 PM EDT
Con.Open();
Cmd = new SqlCommand("Select Command", Con);
SqlDataReader Dr = Cmd.ExecuteReader();
while (Dr.Read())
{
TextBox1.Text=Dr.["ColumnName"].ToString();
}
Con.Close();
Dharani dharanRank #4,788 · 325 reputationPosted Mar 12, 2014, 12:52 AM EDT
Thanks for your help.
I have achieved bring value from the database where as i need to fetch the values from the dynamic text box. Here am creating multiple text box so am facing issues with fetching all the multiple values from the text box