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
What is a postback ispostback and autopostback in asp net?
Explain the use of errorprovider control in .net?
Give 2 examples for scenarios when routing is not applied?
What are the page life cycle events?
What is meant by server side scripting?
Explain about the Class view window?
What are the different types of cookies in asp.net?
What are the asp.net server side objects?
What are the differences between application object and session object?
Explain what is event bubbling?
What is owin authentication?
How long should a session id be?
What are the Types of authentications in IIS
What is special types forms
What is the size of Get method and how much data it can store?