<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ListingVideos.aspx.vb" Inherits="ListingVideos" %><%@ Register Assembly="ASPNetFlashVideo.NET3" Namespace="ASPNetFlashVideo" TagPrefix="ASPNetFlashVideo" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type="text/css"> body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 25px; margin-top: 0px; margin-left: 0px; } .clear { clear:both;} html, body { } p { padding-top:16px; } a { color: #202020; outline: none; } a:hover { text-decoration: underline; color: blue; } a:visited { text-decoration: underline; color: Purple; } .xlink { display:inline-block; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px; position: relative; padding: 4px 10px 4px 10px; background:url(images/link-tail.gif) left top repeat-x #232323; font-size: 12px; line-height:20px; color:#fff; text-decoration:none; font-weight:bold; margin:0 5px 0 6px; } .xlink:hover { background:url(images/link-tail-hover.gif) left top repeat-x #636363; text-decoration: none; color:#fff; } .smallpage { line-height: 16px; margin: 15px; padding: 8px; width: 500px; background-color: #ffffff; display:inline-block; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px; text-decoration:none; box-shadow: rgb(64,64,64) 5px 5px 5px; border: 1px solid #808080; } .smallpagenoshadow { line-height: 16px; margin: 5px; padding: 5px; width: 500px; display:inline-block; text-decoration:none; font-family: Arial, Verdana, Helvetica, Sans-serif; font-size: 12px; font-weight: normal; } .xltextbold { font-family: Arial, Verdana, Helvetica, Sans-serif; font-size: 24px; font-weight: bold; vertical-align: top; color: Black; } .largetextbold { font-family: Arial, Verdana, Helvetica, Sans-serif; font-size: 18px; font-weight: bold; vertical-align: top; color: #7d9b04; } div.RadGrid .rgPager .rgAdvPart { display:none; } </style> <script type="text/javascript"> function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well) return oWindow; } function CloseFormFromServer() { GetRadWindow().Close(); } </script></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <div class="smallpagenoshadow" style="width: 525px;" > <asp:Label ID="TopicHeading" CssClass="xltextbold" runat="server" Text="<% $GetLangString:Listings.VideosHeading %>" Visible="true"></asp:Label> <br /> <br /> <asp:Label ID="LocationLabel" CssClass="largetextbold" runat="server" Text="" ></asp:Label> <br /><br /> <div> <asp:Table ID="Table1" runat="server"> <asp:TableRow> <asp:TableCell> <asp:ImageButton ID="VideoClip1" runat="server" BorderWidth="0px" Height="75px" Width="100px" ImageUrl="" Visible="false" Enabled="false" /> </asp:TableCell> <asp:TableCell> <asp:ImageButton ID="VideoClip2" runat="server" BorderWidth="0px" Height="75px" Width="100px" ImageUrl="" Visible="false" Enabled="false" /> </asp:TableCell> <asp:TableCell> <asp:Image ID="VideoClip3" runat="server" BorderWidth="0px" Height="75px" Width="100px" ImageUrl="" Visible="false" /> <asp:ImageButton ID="ImageButton3" runat="server" BorderWidth="0px" Height="75px" Width="100px" ImageUrl="" Visible="false" Enabled="false" /> </asp:TableCell> <asp:TableCell> <asp:Image ID="VideoClip4" runat="server" BorderWidth="0px" Height="75px" Width="100px" ImageUrl="" Visible="false" /> <asp:ImageButton ID="ImageButton4" runat="server" BorderWidth="0px" Height="75px" Width="100px" ImageUrl="" Visible="false" Enabled="false" /> </asp:TableCell> <asp:TableCell> <asp:Image ID="VideoClip5" runat="server" BorderWidth="0px" Height="75px" Width="100px" ImageUrl="" Visible="false" /> <asp:ImageButton ID="ImageButton5" runat="server" BorderWidth="0px" Height="75px" Width="100px" ImageUrl="" Visible="false" Enabled="false" /> </asp:TableCell> </asp:TableRow> <asp:TableRow> <asp:TableCell ColumnSpan="5" Height="3px" ><hr /></asp:TableCell> </asp:TableRow> </asp:Table> <ASPNetFlashVideo:FlashVideo ID="FlashVideo1" runat="server" Width="515px"> </ASPNetFlashVideo:FlashVideo> <br /> <div class="dataentry_caption2"> <asp:LinkButton CssClass="xlink" ID="LinkButton2" TabIndex="1" Width="80px" runat="server" Text="<% $GetLangString:Listings.CloseButtonLabel %>" ></asp:LinkButton> <asp:Label ID="InjectClose" runat="server" Text=""></asp:Label> </div> </div> This is text before the table <asp:Table ID="Table2" runat="server"> <asp:TableRow Height="5px" > <asp:TableCell > <asp:HiddenField ID="HiddenKeyValue" runat="server" /> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoLink1" runat="server" /> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoLink2" runat="server" /> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoLink3" runat="server" /> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoLink4" runat="server" /> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoLink5" runat="server" /> </asp:TableCell> </asp:TableRow> <asp:TableRow Height="5px" > <asp:TableCell > <asp:Label ID="PageErrors" runat="server" Text=""></asp:Label> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoSize1" runat="server" /> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoSize2" runat="server" /> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoSize3" runat="server" /> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoSize4" runat="server" /> </asp:TableCell> <asp:TableCell > <asp:HiddenField ID="VideoSize5" runat="server" /> </asp:TableCell> </asp:TableRow> </asp:Table> This is text after the table </div> This is text after the div </form> This is text after the form</body></html> <telerik:RadWindow ID="RadWindow7" runat="server" Behaviors="Close" OnClientClose="OnClientClose" Modal="true" NavigateUrl="ListingVideos.aspx" Skin="Black" EnableShadow="true" Width="600px" AutoSize="true" > </telerik:RadWindow>function ViewVideos() { var listing = document.getElementById("<% =HiddenKeyValue.ClientID %>").value; var oWnd = radopen("ListingVideos.aspx?k=" + listing, "RadWindow7");}<Appointment> <ID>6</ID> <Subject>General Meeting</Subject> <Description>Some Desc.</Description> <Start>2011-07-19T19:00</Start> <End>2011-07-19T20:00</End> <fRecurrence>1</fRecurrence> <RecurrenceData> <recurrence> <rule> <firstDayOfWeek>su</firstDayOfWeek> <repeat> <monthlyByDay tu="TRUE" weekdayOfMonth="third" monthFrequency="1" /> </repeat> <repeatForever>TRUE</repeatForever> </rule> </recurrence> </RecurrenceData> <RecurrenceRule> <![CDATA[ DTSTART:20110719T2000 DTEND:20110719T2100 RRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=1;BYDAY=TU ]]> </RecurrenceRule> <Attribute Key="URL" Value="~/Default.aspx" /> <Attribute Key="AppointmentType" Value="general" /></Appointment>guys, it's like something grew overnight on this grid and i just can't figure it out. hopefully ya'll might be able to point me in the right direction. any button on this grid (below) gets the error attached. (invalid postback or callback error). it's sad but this code has sat there for a while unchanged and was working just fine... and then the error (attached) just started. it only happens with the editCommand button or the asp:ImageButton and frankly i can put anykind of button and the "click event" - i assume is triggering this - even if there is no method attached to the button itself. everything else works just fine - menu items etc. has anyone seen this before or knows the cause of this?
thanks again for any help.
rik
<telerik:RadGrid ID="TruckLogItemsRadGrid" runat="server" AllowPaging="false" AutoGenerateColumns="false"
Skin="WebBlue" EnableTheming="false" AllowFilteringByColumn="false" OnItemDataBound="TruckLogItemsRadGrid_ItemDataBound"
OnNeedDataSource="TruckLogItemsRadGrid_NeedDataSource" Width="100%" ShowStatusBar="true"
OnDeleteCommand="TruckLogItemsRadGrid_DeleteCommand" OnUpdateCommand="TruckLogItemsRadGrid_UpdateCommand">
<GroupingSettings CaseSensitive="false" />
<MasterTableView EditMode="InPlace" DataKeyNames="TRUCKLOGITEMID,AVGLENGTH,MATERIALRANGEID,MATERIALTYPE,JOINTCOUNT,TALLYCOUNT,CREATEDDATE,CREATEDBY,LASTUPDATED,LASTUPDATEDBY,MATERIALTYPEID,MATERIALDESCRIPTION">
<HeaderStyle HorizontalAlign="Left" />
<Columns>
<telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="50px" UniqueName="OptionsMenuCell"
ItemStyle-HorizontalAlign="Left" ItemStyle-Width="50px" ItemStyle-Wrap="false">
<ItemTemplate>
<asp:Image ID="RecordInfoImage" runat="server" ImageUrl="~/App_Themes/GOLD Main/Images/grid_info.gif"
CssClass="gridviewOptionsImage" />
<telerik:RadToolTip ID="InfoRadToolTip" runat="server" TargetControlID="RecordInfoImage"
Skin="Sunset" Position="MiddleRight" CssClass="gridviewToolTip" />
<asp:Image ID="PopupMenuImage" runat="server" ImageUrl="~/App_Themes/GOLD Main/Images/grid_menu_popup.gif"
CssClass="gridviewOptionsImage" />
<telerik:RadContextMenu ID="OptionsRadContextMenu" runat="server" Skin="WebBlue"
CssClass="leftText">
<Targets>
<telerik:ContextMenuControlTarget ControlID="PopupMenuImage" />
</Targets>
<Items>
<telerik:RadMenuItem Text="Import From Tally-Rite Device" ImageUrl="../App_Themes/GOLD Main/ToolBar/save_16x16.gif" />
<telerik:RadMenuItem Text="Edit Tally Data" ImageUrl="../App_Themes/GOLD Main/ToolBar/save_16x16.gif" />
</Items>
</telerik:RadContextMenu>
<asp:ImageButton ID="DeleteItem" runat="server" ImageUrl="~/App_Themes/GOLD Main/ToolBar/trash_16x16.gif"
CommandName="Delete" CssClass="gridviewOptionsImage" OnClientClick="javascript:if(!confirm('This action will delete the selected truck log item. Are you sure?')){return false;}" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="../App_Themes/GOLD Main/ToolBar/edit_16x16.gif"
CancelImageUrl="../App_Themes/GOLD Main/ToolBar/delete_16x16.gif" UpdateImageUrl="../App_Themes/GOLD Main/ToolBar/save_16x16.gif"
HeaderStyle-Width="60px" ItemStyle-CssClass="gridviewOptionsImage" ItemStyle-Wrap="false" />
<telerik:GridBoundColumn DataField="LOGITEM" HeaderText="#" HeaderStyle-Width="30px"
ReadOnly="true" />
<telerik:GridBoundColumn DataField="QTY" HeaderText="Qty" AllowFiltering="false"
ColumnEditorID="TextBoxColumnEditorDefault" />
<telerik:GridBoundColumn DataField="LENGTH" HeaderText="Length" HeaderStyle-Width="60px"
ColumnEditorID="TextBoxColumnEditorDefault" />
<telerik:GridBoundColumn DataField="RACKNUMBER" HeaderText="Rack #" HeaderStyle-Width="60px"
ColumnEditorID="TextBoxColumnEditorDefault" />
<telerik:GridBoundColumn DataField="TALLYCOUNT" HeaderText="Tally" HeaderStyle-Width="40px"
ReadOnly="true" />
<telerik:GridBoundColumn DataField="WORKORDERITEMDISPLAY" HeaderText="Work Order"
HeaderStyle-Width="80px" FilterControlWidth="60px" ReadOnly="true" />
<telerik:GridBoundColumn DataField="RELEASENUMBER" HeaderText="Release #" ReadOnly="true" />
<telerik:GridBoundColumn DataField="MATERIALTYPE" HeaderText="Type" HeaderStyle-Width="100px"
ReadOnly="true" />
<telerik:GridBoundColumn DataField="MATERIALCOLORBAND" HeaderText="Color" ReadOnly="true" />
<telerik:GridBoundColumn DataField="SIZEVALUE" HeaderText="Size" FilterControlWidth="40px"
ColumnEditorID="TextBoxColumnEditorDefault" />
<telerik:GridBoundColumn DataField="MATERIALCOATING" HeaderText="Coating" ReadOnly="true" />
<telerik:GridBoundColumn DataField="MATERIALTHREAD" HeaderText="Thread" ReadOnly="true" />
<telerik:GridBoundColumn DataField="MATERIALGRADE" HeaderText="Grade" ReadOnly="true" />
<telerik:GridBoundColumn DataField="MATERIALRANGE" HeaderText="Range" ReadOnly="true" />
</Columns>
</MasterTableView>
</telerik:RadGrid>