Hallo Andreas, hallo Alex, vielen für euer "Dolmetschen" - er versteht mich wieder :-))
Chris hatte in seinem Entwurf etwas in der Art "crtl Is TextBox" verwendet. In der Hilfe habe ich nach "Is TextBox" gesucht, dies aber nicht gefunden. Wäre dadurch der Code noch optimaler? Henri [EMAIL PROTECTED] schrieb am 16.02.04 14:04:10: > > > Hallo, > > versteht mich nicht: > > > > > > foreach (Control ctrl in pnlRow.Controls) > > { > > if > > (ctrl.GetType().ToString() == "System.Web.UI.WebControls.TextBox") > > ctrl.Text = String.Empty; > > } > > > > so vielleicht: > > foreach (Control ctrl in pnlRow.Controls) > { > if (ctrl.GetType().ToString() == "System.Web.UI.WebControls.TextBox") > { > TextBox tbx = (TextBox)ctrl; > tbx.Text = String.Empty; > } > } > > Gruss > > Alex > > _______________________________________________ > Asp.net mailing list > [EMAIL PROTECTED] > http://www.glengamoi.com/mailman/listinfo/asp.net ______________________________________________________________________________ Ein Grund zum Feiern: Die PC Praxis ermittelt zwischen 10 grossen Mailprovidern WEB.DE FreeMail als Testsieger http://f.web.de/?mc=021190 _______________________________________________ Asp.net mailing list [EMAIL PROTECTED] http://www.glengamoi.com/mailman/listinfo/asp.net