Hi Damien,
I had already been to that blog and use the validators.dll with the web.config changes... nothing happened...
This is the way i am using in the RowCommand of the gridview:
1 Protected Sub GridDetails_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridDetails.RowCommand
2 Page.Validate()
3 If e.CommandName = "Insert" AndAlso Page.IsValid() Then
4 ...
5 ...
6 End If
7 End Sub
This is my asp.net code for the customvalidator inside the gridview templatefield:
1 <FooterTemplate>
2 <asp:TextBox ID="txt_newVendorPC" runat="server" MaxLength="7" Columns="7" Text=""></asp:TextBox>
3 <asp:CustomValidator ID="cus_txt_newVendorPC" meta:resourcekey="cus_txt_newVendorPC" runat="server" ControlToValidate="txt_newVendorPC"
4 CssClass="alert" Display="Dynamic" ErrorMessage="Error Message Here!" OnServerValidate="cus_txt_newVendorPC_ServerValidate"
5 ValidationGroup="NewDetails" EnableClientScript="false">*</asp:CustomValidator>
6 </FooterTemplate>