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 / 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 |
What are directives in asp.net? List down all the important directives.
Is There any Third party tools are using in .Net Technologies? Can u Explain?
How do you construct HtmlResponseMessage?
Which is better viewstate or session?
Can any body provide me the sample web application in asp.net
Can private assembly be used for more than one application? If so how?
If you have to replicate a set of controls(UI) across a number of web pages, what will you do
What is Difference between Callbacks and Postback in ASP.NET?
What is data reader in asp.net?
What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
What is application state?
What is the roll of JIT in asp.net?