.NET Hore....

simple beginner .NET geek
See also: Other Geeks@INDC

ASP .NET 2.0 Simple Tricks ( III )

Fill all textbox in page with empty string, you can also do the same tricks with other web server controls :
 
Dim xForm As Control = _
                Page.FindControl("form1")
        For Each ctl As Control _
            In xForm.Controls
            If ctl.GetType().ToString(). _
                Equals("System.Web.UI." & _
                "WebControls.TextBox") Then
                CType(ctl, TextBox).Text = ""
            End If
        Next ctl
Share this post: | | | |
Posted: Feb 24 2006, 04:19 AM by soetam | with no comments
Filed under:

Comments

No Comments