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 |
How Can assign alias name for ASP.NET Web API Action?
Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
Explain how dot net compiled code will become platform independent?
Differentiate session and cookie
What are the uses of list view control in Asp.net?
What is mvc in angular?
How can we Deploy a website?
what is DLL Hell and how it is solved in .NET? please explain clearly??
Write the different features of a Thread and a Process?
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
What is a Repeater Control and how does it works? and what is the diffrence b/w Gridview,datalist and repeater control?
Is asp.net and .net are same or different?
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)