[ArgumentException: 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.] System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +2132776 System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +108 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +32 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
<%
@ Page Language="VB" MasterPageFile="~/Masters/PU89AdminMasterPage.master" AutoEventWireup="false" CodeFile="EditNews.aspx.vb" Inherits="Admin_EditNews" title="PU89 - Admin Area" %>
<%
@ Register Assembly="Telerik.Web.UI, Version=2008.2.1001.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<
Table id="tblAdminEditNews" runat="server" class="PageFont">
<tr>
<td style="height: 10px">           </td>
<td class="HeaderText" style="border-bottom: solid 3px #FF7700; height: 10px" colspan="2">PU89 Admin: News - Edit</td>
</tr>
<tr>
<td style="height: 10px">           </td>
<td style="width: 694px">
<telerik:RadGrid ID="rgdEditNews" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="dsEditNews"
GridLines="None" PageSize="30" Width="100%" Skin="Gray" OnDeleteCommand="rgdEditNews_DeleteCommand"
OnNeedDataSource="rgdEditNews_NeedDataSource" OnEditCommand="rgdEditNews_EditCommand">
<MasterTableView AutoGenerateColumns="False" DataSourceID="dsEditNews" Width="693px" DataKeyNames="ID">
<RowIndicatorColumn>
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<Columns>
<telerik:GridButtonColumn CommandName="Edit" Text="Edit" UniqueName="column1">
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="column1">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="Title" EmptyDataText="&nbsp;" HeaderText="Title"
SortExpression="Title" UniqueName="Title">
<ItemStyle Width="425px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="BDate" DataType="System.DateTime" EmptyDataText="&nbsp;"
HeaderText="Date" SortExpression="BDate" UniqueName="BDate">
<ItemStyle Width="100px" />
</telerik:GridBoundColumn>
<telerik:GridCheckBoxColumn DataField="Display" DataType="System.Boolean" HeaderText="Display"
SortExpression="Display" UniqueName="Display">
<ItemStyle Width="100px" />
</telerik:GridCheckBoxColumn>
<telerik:GridBoundColumn DataField="ID" Display="False" EmptyDataText="&nbsp;"
UniqueName="ID" Visible="False">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
<FilterMenu EnableTheming="True" Skin="Gray">
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
</telerik:RadGrid><asp:SqlDataSource ID="dsEditNews" runat="server" ConnectionString="<%$ ConnectionStrings:PU89 %>"
SelectCommand="SELECT [ID], [Title], [BDate], [Display] FROM [tblNews]" ConflictDetection="CompareAllValues" DeleteCommand="DELETE FROM [tblNews] WHERE [ID] = @original_ID AND [Title] = @original_Title AND [BDate] = @original_BDate AND [Display] = @original_Display" InsertCommand="INSERT INTO [tblNews] ([Title], [BDate], [Display]) VALUES (@Title, @BDate, @Display)" OldValuesParameterFormatString="original_{0}" UpdateCommand="UPDATE [tblNews] SET [Title] = @Title, [BDate] = @BDate, [Display] = @Display WHERE [ID] = @original_ID AND [Title] = @original_Title AND [BDate] = @original_BDate AND [Display] = @original_Display">
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td style="height:275px"> </td>
</tr>
</
Table>
</
asp:Content>
My edit module is called rgdEditNews_EditCommand but it is empty for now because i wasn't sure where to begin. Thanks!
protected
void RadToolTipmanager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)
{
ProductDetails details = (ProductDetails)this.LoadControl("ProductDetails.ascx");
details.ProductID = e.Value;
e.UpdatePanel.ContentTemplateContainer.Controls.Add(details);
}
reply me plz