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 |
1. Briefly describe your ideal job?
1 Answers Swatz Oils, Swetz Oil,
How does output caching work in ASP.NET?
Difference between .NET components and COM components?
Why we use asp.net for website development?
Diff B/W user control and server control
public key?
How can we identify that the page is post back in asp net?
How can u handle Un Managed Code Exceptions in ASP.Net?
Types of caching. How to implement caching?
What is application and session in asp.net?
What is ispostback method in asp.net?
What are Http handler ?
6 Answers Accenture, BirlaSoft, Satyam, Syntel,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)