accessing a textbox that was created dynamically?
for (int i = 0; i < t1; i++)
{
TextBox t2 = new TextBox();
t2.ID = "adf" + i;
PlaceHolder1.Controls.Add(t2);
}
accessing data entered in the above created controls.
Answer Posted / joy ghosh
for (int i = 0; i < t1; i++)
{
TextBox t2 =(TextBox) PlaceHolder1.FindControl("adf" + i);
string str=t2.Text;
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Write a code for sending an email from asp.net application.
What are the major built-in objects in ASP.NET?
What is data binding in asp net?
Do you know caching feature?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
What describes a query?
Define reflection in .net?
What is Forms Authentication in ASP.NET?
Explain managed code an un-managed code.
How long should a session id be?
What is Partial PostBack in ASP.NET?
What is difference between asp.net and asp.net mvc? : Asp.Net MVC
Why should i prefer JSP over asp.net or any other web development language..??
Should I delete cookies?
What is query string in asp.net?