Regarding counting of Html controls
-
hello, I need count the number of empty html input boxes . I am using asp.net(coding in vb.net) I am using the following code to get access to all the input boxes since there are many of them in my form.Can u tell me what should I write in the if condition so that I can check if the input box is empty? Dim count As Integer Dim form As HtmlForm form = Me.FindControl("Form1") Dim control As Control For Each control In form.Controls If (Convert.ToString(control.GetType) = "System.Web.UI.HtmlControls.HtmlInputText") Then if( ) count = count + 1 end if End If Next Thanks & Regards Nagalakshmi
-
hello, I need count the number of empty html input boxes . I am using asp.net(coding in vb.net) I am using the following code to get access to all the input boxes since there are many of them in my form.Can u tell me what should I write in the if condition so that I can check if the input box is empty? Dim count As Integer Dim form As HtmlForm form = Me.FindControl("Form1") Dim control As Control For Each control In form.Controls If (Convert.ToString(control.GetType) = "System.Web.UI.HtmlControls.HtmlInputText") Then if( ) count = count + 1 end if End If Next Thanks & Regards Nagalakshmi