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

Explain an object, class and method.

1052


What is query string? What are its advantages and limitations?

1037


What is the purpose of url encoding?

1028


What is caching? Explain.

1055


What is difference between rest and soap?

1179


What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?

1110


What do you mean by serialize and marshalbyref?

1060


How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.

1207


What is page fragment caching?

1009


Can master pages be nested?

983


How you will manage the state of ASP.NET controls?

1118


What is base class of button control in .net?

1058


What is the difference between client-side and server-side validations in ASP.NET?

1238


Distinguish between Server-side and Client-side code with its functionality?

1184


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

1902