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 an object, class and method.
What is query string? What are its advantages and limitations?
What is the purpose of url encoding?
What is caching? Explain.
What is difference between rest and soap?
What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?
What do you mean by serialize and marshalbyref?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.
What is page fragment caching?
Can master pages be nested?
How you will manage the state of ASP.NET controls?
What is base class of button control in .net?
What is the difference between client-side and server-side validations in ASP.NET?
Distinguish between Server-side and Client-side code with its functionality?
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications