how to get the text of the dynamical textbox which is added to the dynamical table,which is added to the panel on the form ,that form is having the masterpage
A:
Presumably your talking about ASP.NET ? Are you trying to get the value in the code behind or client side using Javascript.
If its server side, and your <asp:Panel>
is declared on the page, you could do...
foreach(Control c in myPanel.Controls)
{
if(c.GetType() == typeof(TextBox))
{
TextBox tb = c as TextBox;
if(tb.ID == "The ID Your Looking For")
{
//Do stuff with tb.Text;
}
}
}
Eoin Campbell
2009-05-11 10:33:56