Posted on: 5/29/2013 11:09:31 AM | Views : 253

Hello,
<asp:CustomValidator ID="CustomValidator1" runat="server" OnServerValidate="ServerValidation" ErrorMessage="CustomValidator" ValidateEmptyText="True"></asp:CustomValidator>
Protected Sub ServerValidation(source As Object, args As System.Web.UI.WebControls.ServerValidateEventArgs) For Each dl As DataListItem In DataList1.Items Dim rbl As RadioButtonList = dl.FindControl("RadioButtonList1") If rbl5.SelectedIndex = -1 Then args.IsValid = True Else args.IsValid = False End If Next End Sub ImageButton is an Insert Button.
Protected Sub ImageButton1_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) If (Page.IsValid) Then ...

Go to the complete details ...