<CommandItemTemplate> <table class="rgCommandTable" border="0" style="width:100%;"> <tr> <td style="text-align: left"> <asp:Panel ID="MakeLotDistribution" runat="server"> <asp:Button ID="MakeLotDistributionButton" runat="server" CausesValidation="False" title="Faire un lot de distribution" CommandName="InitInsert" class="rgAdd" OnClientClick="if (!checkIfSelected(this)) return;" /> <asp:LinkButton ID="MakeLotDistributionlien" runat="server" CausesValidation="False" Text="Faire un lot de distribution" CommandName="InitInsert" OnClientClick="return checkIfSelected(this);" /> </asp:Panel> </td> <td style="text-align: right"> <asp:Button ID="RefreshButton" runat="server" Text=" " title="Rafraîchir" class="rgRefresh" /> <asp:LinkButton ID="RebindGridButton" runat="server" CausesValidation="False" >Rafraîchir</asp:LinkButton> </td> </tr> </table></CommandItemTemplate>
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: 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.protected override void OnInit(EventArgs e){ RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(this.DistributionItemGrid);}<div id="uploader"> <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" Culture="zh-CN" EnableEmbeddedSkins="False" EnableInlineProgress="false" TemporaryFolder="~/Temp" Skin="Windows7" OnFileUploaded="RadAsyncUpload1_FileUploaded" AllowedFileExtensions="mp3,wav" MultipleFileSelection="Automatic"> </telerik:RadAsyncUpload> <asp:Button ID="Upload" runat="server" ClientIDMode="Static" Text="Upload" Enabled="true" /> <telerik:RadProgressManager ID="RadProgressManager1" runat="server" RefreshPeriod="10" /> <telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="true" EnableEmbeddedSkins="false" Skin="Windows7" Culture="zh-CN"> </telerik:RadProgressArea></div>protected void RadAsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e){ string filewebpath = "Upload/" + System.DateTime.Now.ToString("yyyy-MM-dd") + "/" + ddlWorkSegment.SelectedItem.Text; string filelocalpath = Server.MapPath("~/" + filewebpath); string fileduration = ""; MembershipUser u = Membership.GetUser(User.Identity.Name); // create|check target folder if (!System.IO.Directory.Exists(filelocalpath)) { try { System.IO.Directory.CreateDirectory(filelocalpath); } catch (Exception ex) { throw ex; } } foreach (UploadedFile uf in RadAsyncUpload1.UploadedFiles) { uf.SaveAs(filelocalpath + "\\" + uf.FileName.ToLower(), true); // here is codes for inserting file information into database } // refresh gridview to show file list gdvwFileList.DataSourceID = sqldsFileList.ID;}<telerik:RadComboBox ID="cmbDeptDCVL" runat="server" AllowCustomText="false" HighlightTemplatedItems="True" Width="100"
TabIndex="6" DropDownWidth="320px" >
<HeaderTemplate>
<table>
<tr>
<td width="20">
<asp:CheckBox ID="chkAllDCVL" runat="server" ToolTip="Select/Deselect All" Text="" />
</td>
<td width="80"> Dept </td>
<td width="220">Description </td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table>
<tr align="left">
<td width="20">
<asp:CheckBox runat="server" ID="chkSingleDCVL" Text="" />
</td>
<td width="80" align="left"> <%#CType(Container.DataItem, PhysicalInventory.Models.ApplCompStructInfo).DeptId%> </td>
<td width="220" align="left"> <%#CType(Container.DataItem, PhysicalInventory.Models.ApplCompStructInfo).DeptShortDesc%> </td>
</tr>
</table>
</ItemTemplate>
<CollapseAnimation Duration="200" Type="OutQuint" />
</telerik:RadComboBox>
-----------------
any help
Thanks
