Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.



accessing a textbox that was created dynamically? for (int i = 0; i < t1; i++) ..

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

Post New Answer

More ASP.NET Interview Questions

How to convert any string to view state format in asp.net? §ÇÛ짬ªª³ö»Ç¾ö»ÂÇ¿¾»¼»¾ö¼ÉÇöÇÏǼ»Ãö®±ª§°ö«³ -- i want convert this string to view state.

1 Answers   iFlex,


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

0 Answers  


What is a form tag?

0 Answers  


what is the difference between sql 2000 and 2005?

2 Answers   Cognizant,


What role “#&&” plays in a querysting?

0 Answers  


What are the benefits of view state?

0 Answers  


How would ASP and ASP.NET applications run at the same time on the same server?

0 Answers   Satyam,


What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

4 Answers  


What is a web farm?

0 Answers  


What Are The Difference Between AutoEventWireup="true" and AutoEventWireup="False"

12 Answers   Phoenix Technologies,


Different type of validation controls in asp.net ?

1 Answers   CTS, Keane India Ltd,


How can u sort strings in array where strings are passed to method as arguments.

3 Answers   CTS, Syncfusion,


Categories