Help
-
I am having a little problem.... I have formview and within the ItemTemplate of the formview I have a tables with different controls. I won't to be able to loop through the formview and depending on the type of control do something with it. When I loop through it, it only says there are one control which is the table... Here are some snipetts.
Score
Protected Sub btnReset_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnReset.Click For Each c As Control In FormView1.Controls If TypeOf c Is TextBox Then CType(c, TextBox).Text = "" ElseIf TypeOf c Is CheckBox Then CType(c, CheckBox).Checked = False End If Next End Sub
-
I am having a little problem.... I have formview and within the ItemTemplate of the formview I have a tables with different controls. I won't to be able to loop through the formview and depending on the type of control do something with it. When I loop through it, it only says there are one control which is the table... Here are some snipetts.
Score
Protected Sub btnReset_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnReset.Click For Each c As Control In FormView1.Controls If TypeOf c Is TextBox Then CType(c, TextBox).Text = "" ElseIf TypeOf c Is CheckBox Then CType(c, CheckBox).Checked = False End If Next End Sub
Hi, Then try to loop through the Table(HtmlTable).
**$**herin Iranimose