I have some RequiredFieldValidators in both Insert.ascx and Update.ascx. I’m trying to validate the insert page, but then the fields which are in update page also try to validate, showing the required field validation message.
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.Master"
CodeBehind="client.aspx.cs" Inherits="Saver._Default" %>
<%@ Register TagPrefix="ins" TagName="Viewcomments" Src="Insert.ascx" %>
<%@ Register TagPrefix="upd" TagName="brcmsninfo" Src="Update.ascx" %>
Use
ValidationGroupfor each of your UserControl.ValidationGroupwill fire validation only for those controls with the sameValidationGroupvalue