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.

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


Please Help Members By Posting Answers For Below Questions

What is a postback ispostback and autopostback in asp net?

963


Explain the use of errorprovider control in .net?

1016


Give 2 examples for scenarios when routing is not applied?

1111


What are the page life cycle events?

970


What is meant by server side scripting?

1010


Explain about the Class view window?

1042


What are the different types of cookies in asp.net?

1083


What are the asp.net server side objects?

1026


What are the differences between application object and session object?

1055


Explain what is event bubbling?

1073


What is owin authentication?

1025


How long should a session id be?

1093


What are the Types of authentications in IIS

1118


What is special types forms

1075


What is the size of Get method and how much data it can store?

1243