title: CausesValidation="false"is not working
body: <p>I set <code>CausesValidation="false"</code> to my cancel button,But when I click the Cancel button ,the <code>exception(arrow)</code> is displaying for fraction of seconds after the page loads.I tried many ways to disable by adding group name to validator and <code>EnableClientScript property=false</code> to validator but these couldn't help me resolve the problem. Even I checked many threads but no one give the solution.If any body came across this problem please help me. </p>
  
  <pre><code>  &lt;form id="form1" runat="server" &gt;
    &lt;div class="AdminContent"&gt;
          &lt;asp:Label ID="Label1" runat="server"  
        CssClass="BreadcrumbActiveBig" Text="Group Membership" /&gt;
          &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt; 
       &lt;/asp:ScriptManager&gt;
          &lt;br /&gt;&lt;br /&gt;
          &lt;asp:HiddenField ID="HiddenFieldProfile" runat="server" 
            /&gt;              
  
          &lt;asp:FormView DefaultMode="Edit" ID="FormView1" runat="server" 
     DataSourceID="PermGroupObjectDataSource1" OnPreRender="FormView1_PreRender"&gt;
              &lt;EditItemTemplate&gt;
                  &lt;table&gt;
                      &lt;tr&gt;
                          &lt;td align="left" colspan="3"&gt;
                              &lt;asp:Button ID="btnSave" 
                    runat="server" OnClick="btnSave_Click" Text="Save" Width="67px" 
          CssClass="ButtonS1"/&gt;
      &lt;asp:Button ID="btnCancel"  runat="server" OnClick="btnCancel_Click" 
        Text="Cancel" CssClass="ButtonS1" CausesValidation="false"  /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&lt;asp:Label ID="lblGrpName" 
         runat="server" Text="Group Name:" Width="138px"/&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;asp:TextBox ID="GroupNameTextBox" 
         MaxLength="50" runat="server" Text='&lt;%# Bind("GroupName") %&gt;' Width="337px"
        ReadOnly="false" /&gt;
                              &lt;asp:RequiredFieldValidator ID="rqrgFldVldtr_GroupName" 
        ControlToValidate="GroupNameTextBox" Display="Dynamic" ErrorMessage="&amp;lt;"
                              meta:resourcekey="RequiredFieldValidator1Resource2" 
       runat="server"  &gt;&lt;/asp:RequiredFieldValidator&gt;
  
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&lt;asp:Label ID="lblGrpDescr" 
      runat="server" Text="Group Description:" Width="138px"/&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;asp:TextBox ID="GroupDescrTextBox" 
     MaxLength="255" runat="server" Text='&lt;%# Bind("GroupDescr") %&gt;' Width="337px" 
      ReadOnly="false" /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;asp:Panel ID="managedByPanel" runat="server" 
        Visible="false"&gt;
                              &lt;td&gt;&lt;asp:Label ID="lblManagedByDescr" 
         runat="server" Text="Managed by:" Width="138px"/&gt;&lt;/td&gt;
                              &lt;td&gt;
                                  &lt;asp:DropDownList 
       ID="managedByDropDownList" runat="server"&gt;
                                      &lt;asp:ListItem Value="0" 
         Text="Admin" /&gt;
                                      &lt;asp:ListItem Value="1" Text="AP Clerk admin &amp;amp; Admin" /&gt;
                                      &lt;asp:ListItem Value="2" Text="POC admin &amp;amp; Admin" /&gt;
                                  &lt;/asp:DropDownList&gt;
                              &lt;/td&gt;
                          &lt;/asp:Panel&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                      &lt;asp:Panel ID="lblFilterPanel" runat="server" Visible="false"&gt;
                              &lt;td&gt;
                                  &lt;asp:Label ID="LabelFilter" runat="server" Text="Exclude From Document Filter" Width="150px"/&gt;
                              &lt;/td&gt;
                              &lt;td&gt;
                                  &lt;asp:CheckBox ID="chbExcludefromDocFilter" runat="server" 
                                      Checked='&lt;%# Bind("ExcludeFromUserFilter") %&gt;' /&gt;
                              &lt;/td&gt;
                              &lt;/asp:Panel&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td valign="top"&gt;
                              &lt;asp:Label ID="lblMembers" runat="server" Text="Members:" Width="80px"/&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                                  &lt;ContentTemplate&gt;
                                      &lt;div&gt;
                                          &lt;asp:ListBox ID="lbxMembers" runat="server" style="overflow:auto; width:500px; height:150px;" DataSourceID="MembersObjectDataSource1" DataTextField='ListName' DataValueField="UName" SelectionMode="Multiple" /&gt;&lt;br /&gt;
                                          &lt;asp:ObjectDataSource ID="MembersObjectDataSource1" runat="server" DataObjectTypeName="System.Collections.Generic.List`1[[Accenture.CSTPrague.eAPI.GroupMember, eAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" SelectMethod="FetchGroupMembers" TypeName="Accenture.CSTPrague.eAPI.WebDB_Perm" UpdateMethod="StoreGroupMembers"&gt;
                                              &lt;SelectParameters&gt;
                                                  &lt;asp:SessionParameter Name="o" SessionField="oPermGroup" Type="Object" /&gt;
                                              &lt;/SelectParameters&gt;
                                          &lt;/asp:ObjectDataSource&gt;
                                      &lt;/div&gt;
                                      &lt;asp:Button ID="btnDeleteSelected" runat="server" OnClick="btnDeleteSelected_Click" Text="Delete Selected" Width="106px" CssClass="ButtonS1" Style="margin: 4px 0px 8px 2px;" /&gt;
                                  &lt;/ContentTemplate&gt;
                                  &lt;Triggers&gt;
                                      &lt;asp:AsyncPostBackTrigger ControlID="btnDeleteSelected" EventName="Click" /&gt;
                                  &lt;/Triggers&gt;
                               &lt;/asp:UpdatePanel&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td&gt;
                              &lt;asp:Label ID="lblUserName" runat="server" Text="User name:" Width="141px"/&gt;
                          &lt;/td&gt;
                          &lt;td&gt;
                              &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
                                  &lt;ContentTemplate&gt;
                                  &lt;asp:Panel ID="panel1" runat="server" DefaultButton="btnAdd"&gt;
                                      &lt;table&gt;
                                          &lt;tr&gt;
                                              &lt;td valign="top"&gt;
                                                  &lt;accenture:lookupcontrol ID="UserLookup" runat="server"
                                                      LookupCommand="usr"
                                                      MaxLength="100"
                                                      ValidationGroup="addUser"
                                                      DisableValidation="true"
                                                      /&gt;
                                              &lt;/td&gt;
                                              &lt;td&gt;
                                                  &lt;asp:CustomValidator ID="cuvUserName" runat="server" ValidationGroup="addUser" 
                                                  Display="Dynamic" ErrorMessage="&lt;" EnableClientScript="false" OnServerValidate="cuvUserName_ServerValidate"
                                                  ControlToValidate="UserLookup" ValidateEmptyText="true" /&gt;
                                              &lt;/td&gt;
  
                                              &lt;td valign="top"&gt;
                                                  &lt;asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Add User" ValidationGroup="addUser" CausesValidation="true" CssClass="ButtonS1" Style="margin: 2px 0px 8px 2px;"/&gt;
                                              &lt;/td&gt;
                                          &lt;/tr&gt;
                                      &lt;/table&gt;  
                                   &lt;/asp:Panel&gt; 
                                  &lt;/ContentTemplate&gt;
                                  &lt;Triggers&gt;
                                      &lt;asp:AsyncPostBackTrigger ControlID="btnAdd" EventName="Click" /&gt;
                                  &lt;/Triggers&gt;
                               &lt;/asp:UpdatePanel&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr style="vertical-align:top"&gt;
                          &lt;asp:Panel ID="queryConditionPanel" runat="server" Visible="false"&gt;
                              &lt;td&gt;&lt;asp:Label ID="lblQueryCondition" runat="server" Text="Query&amp;nbsp;Condition:" Width="138px"/&gt;&lt;/td&gt;
                              &lt;td&gt;&lt;accenture:LengthLimitedMultilineTextBox ID="txtQueryCondition" runat="server" Text='&lt;%# Bind("QueryCondition") %&gt;' style="width:500px" TextMode="MultiLine" MaxLength="1000" Height="100px" CssClass="txtbox" /&gt;&lt;/td&gt;
                          &lt;/asp:Panel&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
              &lt;/EditItemTemplate&gt;
              &lt;InsertItemTemplate&gt;
                  Gid: &lt;asp:TextBox ID="GidTextBox" runat="server" Text='&lt;%# Bind("Gid") %&gt;' /&gt;&lt;br /&gt;
                  GroupName: &lt;asp:TextBox ID="GroupNameTextBox" MaxLength="50" runat="server" Text='&lt;%# Bind("GroupName") %&gt;' /&gt;&lt;br /&gt;
                  Id: &lt;asp:TextBox ID="IdTextBox" runat="server" Text='&lt;%# Bind("Id") %&gt;'&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
                  GroupDescr: &lt;asp:TextBox ID="GroupDescrTextBox" MaxLength="255" runat="server" Text='&lt;%# Bind("GroupDescr") %&gt;' /&gt;&lt;br /&gt;
                  ExcludeFromUserFilter: &lt;asp:CheckBox ID="chbExcludefromDocFilter" runat="server" Checked='&lt;%# Bind("ExcludeFromUserFilter") %&gt;' /&gt;&lt;br /&gt;
                  Members: &lt;asp:TextBox ID="MembersTextBox" runat="server" Text='&lt;%# Bind("Members") %&gt;' /&gt;&lt;br /&gt;
                  &lt;asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Insert" /&gt;
                  &lt;asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /&gt;
              &lt;/InsertItemTemplate&gt;
              &lt;ItemTemplate&gt;
                  Gid: &lt;asp:Label ID="GidLabel" runat="server" Text='&lt;%# Bind("Gid") %&gt;' /&gt;&lt;br /&gt;
                  GroupName: &lt;asp:Label ID="GroupNameLabel" runat="server" Text='&lt;%# Bind("GroupName") %&gt;' /&gt;&lt;br /&gt;
                  Id: &lt;asp:Label ID="IdLabel" runat="server" Text='&lt;%# Bind("Id") %&gt;' /&gt;&lt;br /&gt;
                  GroupDescr: &lt;asp:Label ID="GroupDescrLabel" runat="server" Text='&lt;%# Bind("GroupDescr") %&gt;' /&gt;&lt;br /&gt;
                  &lt;%--ExcludeFromUserFilter: &lt;asp:Label ID="lblExcludefromDocFilter" runat="server" Text='&lt;%# Bind("ExcludeFromUserFilter") %&gt;' /&gt;&lt;br /&gt;--%&gt;
                  Members: &lt;asp:Label ID="MembersLabel" runat="server" Text='&lt;%# Bind("Members") %&gt;' /&gt;&lt;br /&gt;
                  &lt;asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" /&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:FormView&gt;
  
          &lt;asp:Label ID="lblMsg" runat="server" ForeColor="Red" /&gt;
  
          &lt;asp:ObjectDataSource ID="PermGroupObjectDataSource1" runat="server" DataObjectTypeName="Accenture.CSTPrague.eAPI.PermGroup" SelectMethod="FetchPermGroupFromDB" TypeName="Accenture.CSTPrague.eAPI.WebDB_Perm" UpdateMethod="StorePermGroupToDB" OnUpdating="PermGroupObjectDataSource1_Updating"&gt;
              &lt;SelectParameters&gt;
                  &lt;asp:SessionParameter Name="o" SessionField="oPermGroup" Type="Object" /&gt;
              &lt;/SelectParameters&gt;
          &lt;/asp:ObjectDataSource&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>