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
Explain State management in asp.net
Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj
What are the Types of chaching. How to implement caching
How can you handle errors in Web API?
Explain the updatepanel?
What should you do is you want to remove an existing component but would like to make some funtionalities?
If you are using components in your application, how can you handle exceptions raised in a component?
ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?
Can any body provide me the sample web application in asp.net
What does asp stand for in asp.net?
How to find last error which occurred in Asp.net ?
What are the versions of garbage collection?
Describe a Windows Service and its lifecycle ?
What is the mvc model?
What is application variable in asp.net?