DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 09 Aug 2007 04:04:24 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    divya


Button Inside Header template of Gridview--gives error on click   
I have used a button in the header of a gridview which has submit
behaviour true .

 <asp:TemplateField HeaderText="Notify By Mail">
        <ItemTemplate>
           <asp:CheckBox ID="chkNotify" runat="server" /> 
        </ItemTemplate>
        <HeaderTemplate>
           <asp:Button ID="btnnotify" runat="server"
CausesValidation="False" CssClass="button"
                        Font-Bold="True"  Text="Notify by Email"
CommandName="notify" /> 
         </HeaderTemplate>
 </asp:TemplateField>

When I click on this button I recieve the error :-

      "Invalid postback or callback argument.  Event validation is
enabled using <pages enableEventValidation="true"/> in configuration
or <%@ Page EnableEventValidation="true" %> in a page.  For security
purposes, this feature verifies that arguments to postback or callback
events originate from the server control that originally rendered
them.  If the data is valid and expected, use the
ClientScriptManager.RegisterForEventValidation method in order to
register the postback or callback data for validation."

I recieve this error only if "submit behaviour is true" .

How do I make this button persent in the header of the gridview work
as a Submit button. I only need the values of the gridview which holds
this button.

Regards,
Divya
Date:Thu, 09 Aug 2007 04:04:24 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us