
function OpenChildRadWindow(p_sURL, p_iWidth, p_iHeight) { var l_oBrowserWnd = GetRadWindow().BrowserWindow; setTimeout(function () { var l_oWindow = l_oBrowserWnd.radopen(p_sURL, "newRadWindow", p_iWidth, p_iHeight); l_oWindow.radParent = this; l_oWindow.InitialBehaviors = Telerik.Web.UI.WindowBehaviors.None; l_oWindow.set_modal(true); }, 0);}<telerik:radcombobox id="cmbBox" runat="server" width="185px" DataTextField="Text" DataValueField="Value" DataCheckedField="IsChecked" MaxHeight="185px" CheckBoxes="True" EnableCheckAllItemsCheckBox="True" Filter="None" Sort="None" EnableTextSelection="False" OnClientItemChecked="cmbBoxItemChecked"/>cmbBox.Items.Add(new RadComboBoxItem("separator1") { IsSeparator = true });cmbBox.Items.Add(new RadComboBoxItem { Text = "Name1", Value = "Value1", Checked = false });cmbBox.Items.Add(new RadComboBoxItem("separator2") { IsSeparator = true });cmbBox.Items.Add(new RadComboBoxItem { Text = "Name2", Value = "Value2", Checked = false });cmbBox.Items.Add(new RadComboBoxItem("separator3") { IsSeparator = true });cmbBox.Items.Add(new RadComboBoxItem { Text = "Name3", Value = "Value3", Checked = false });function cmbBoxItemChecked(sender, eventArgs){ sender.set_text("my custom text according to internal logic, based on checked item");}
Good day,
We’ve been experiencing the invalid webresource exception for at least a few weeks now, mainly on IE7 and IE8, although we’ve also seen it on IE9 and Firefox (but far less frequently).
2012-06-06 14:10:23,238 [20] [admin] [xbqai0wdtzjrg2akwu0hjrc1] [(null)] ERROR Global - Unhandled exception was [System.Web.HttpException (0x80004005): This is an invalid webresource request.
2012-06-06 16:11:49,758 [17] [(null)] [(null)] [(null)] ERROR Global - Application_Error : unhandled exception processing /[AppName]/WebResource.axd?d=Suu-bg3mCuf0dFdR6OaZkvX4qIzt-FMOe6pPRuU-iok0iBRX7G8SkmhJ6f6sVdRz5vgh3rhLmGeuyVCZQ7NlYAkluB8OomTcba5DZz_nqarySe1LWUgUVAdCHlVY9NrY1NCgWnu8yVgPuJfiygFy-Q2&t=634739782657507859
We fixed this by using fixed Machine Keys in IIS, and once all the users had deleted their Temporary Internet Files, we did not see the exception again. At least, until we deployed the latest build of our code onto the server.
Now, the issue is recurring fairly randomly and what happens is on certain pages our application, the selected menu item disappears as do the background images for RadTabStrips. What’s interesting is that it only happens on Internet Explorer (even 9), and if we open Developer Tools and check “Always refresh from server” under Cache, the problem goes away, but returns as soon as we uncheck that option.
We then went to our Temporary Internet Files folder and noticed that there are a number of files with names like: Telerik.Web.UI.WebResource.axd?compress=x&Telerik.Web.UI%2c+Version%3d2012.1.215.40%2c+Culture%3dneutral%2c …
We then opened all of these into Notepad and took the each of the problematic URLs in the error log to try and find the culprit, but to no avail.
We do have the following code on our Master page (if that helps):
<telerik:RadScriptManager ID="RadScriptManager" runat="server" EnableScriptGlobalization="true" EnablePageMethods="true" EnableScriptCombine="true">
<CompositeScript>
<Scripts>
<asp:ScriptReference Path="~/Javascript/jquery1.js" />
<asp:ScriptReference Path="~/Javascript/JavaScript1.js" />
</Scripts>
</CompositeScript>
</telerik:RadScriptManager>
We are unable to provide a sample of the issue, as we can’t reproduce it locally (other than with automatically generated keys).
Any advice you can provide would be greatly appreciated.
Kind regards,
Graeme
col 1 | col 2 | col 3 | col 4p1 | p2 | p3 | p4 |c1 | c2 | c3 | c4 |c1 | c2 | c3 | c4 |col 1 | col 2 | col 3 | p1 | p2 | p3 | c1 | c2 | c3 | c4 |c1 | c2 | c3 | c4 |<telerik:RadGrid ID="grdNotes" runat="server" OnColumnCreated="grdNotes_ColumnCreated" OnItemCreated="grdNotes_ItemCreated" OnItemDataBound="grdNotes_ItemDataBound" OnNeedDataSource="grdNotes_NeedDataSource" OnPreRender="grdNotes_PreRender" AutoGenerateColumns="false" SkinID="HierarchicalGrid" GridLines="None" AllowCustomPaging="True" ShowStatusBar="True" PageSize="20" EnableLinqExpressions="False" Width="99%"> <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" AllowSorting="true" DataKeyNames="Id,ParentId,Token,IsRoot,Replies,NoteCreator" ClientDataKeyNames="Id,ParentId,Token,IsRoot,Replies,NoteCreator" NoDetailRecordsText="" EnableNoRecordsTemplate="False" TableLayout="Auto" Width="100%" HorizontalAlign="Right"> <SelfHierarchySettings ParentKeyName="ParentId" KeyName="Id" MaximumDepth="20" /> <RowIndicatorColumn Visible="False" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn> <Columns> <telerik:GridClientSelectColumn DataTextField="Id" HeaderAbbr="Select" HeaderButtonType="TextButton" HeaderText="Select" HeaderTooltip="Select/Deselect" Text="Select" Visible="false" UniqueName="asgSelect" Exportable="false"> </telerik:GridClientSelectColumn> <telerik:GridBoundColumn DataField="Id" SortExpression="Id" UniqueName="Id" Exportable="true"> <HeaderStyle Width="50px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Title" SortExpression="Title" UniqueName="Title" Exportable="true" HtmlEncode="true" > <HeaderStyle Width="150px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Body" SortExpression="Body" UniqueName="Body" HtmlEncode="False" Exportable="true"> <HeaderStyle Width="350px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CreatedBy" SortExpression="CreatedBy" UniqueName="CreatedBy" Exportable="true"> <HeaderStyle Width="150px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CreatedDate" SortExpression="CreatedDate" UniqueName="CreatedOn" Exportable="true"> <HeaderStyle Width="150px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ParentId" HeaderText="Parent Id" SortExpression="ParentId" Exportable="false" UniqueName="ParentId" Visible="false" /> <telerik:GridBoundColumn DataField="Token" HeaderText="Token" SortExpression="Token" Exportable="false" UniqueName="Token" Visible="false" /> <telerik:GridBoundColumn DataField="IsRoot" HeaderText="Is Root" SortExpression="IsRoot" Exportable="false" UniqueName="IsRoot" Visible="false" /> <telerik:GridBoundColumn DataField="Replies" HeaderText="Replies" SortExpression="Replies" Exportable="false" UniqueName="Replies" Visible="false" /> <telerik:GridBoundColumn DataField="NoteCreator" HeaderText="NoteCreator" SortExpression="NoteCreator" Exportable="false" UniqueName="NoteCreator" Visible="false" /> <telerik:GridTemplateColumn UniqueName="Actions" Visible="false" Exportable="false"> <ItemTemplate> <telerik:RadToolBar ID="rtbNoteActions" runat="server" SkinID="ActionToolbar" OnButtonClick="NotesGridToolbarButtonClicked" OnClientButtonClicking="NoteActionToolbarClicking"> <Items> <telerik:RadToolBarButton Text="Properties" CommandName="Properties" ImageUrl="~/Images/page_view.gif" /> <telerik:RadToolBarButton Text="Reply" CommandName="Reply" ImageUrl="~/Images/page_edit.gif" /> <telerik:RadToolBarButton Text="Security" CommandName="Security" ImageUrl="~/Images/shield16.gif" /> <telerik:RadToolBarButton Text="Delete" CommandName="Delete" ImageUrl="~/Images/delete16.gif" /> </Items> </telerik:RadToolBar> </ItemTemplate> <HeaderStyle Width="15%"></HeaderStyle> </telerik:GridTemplateColumn> </Columns> <EditFormSettings> <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn> </EditFormSettings> <PagerStyle AlwaysVisible="True"></PagerStyle> </MasterTableView> <HeaderContextMenu EnableTheming="True"> <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> </HeaderContextMenu> <ExportSettings ExportOnlyData="True" IgnorePaging="True"> </ExportSettings> <ClientSettings Selecting-AllowRowSelect="true" Resizing-AllowColumnResize="true"> <Selecting AllowRowSelect="True"></Selecting> <ClientEvents OnRowSelected="NoteRowSelected" OnRowContextMenu="NoteContextMenu" OnRowDblClick="grdNotes_OnRowDblClick" OnGridCreated="NotePageLoad" OnTableCreated="ResizeAllNoteColumns" OnColumnResized="ResizeAllNoteColumns" /> <Resizing AllowColumnResize="True"></Resizing> </ClientSettings> <PagerStyle Position="Bottom" AlwaysVisible="True" Mode="NextPrevAndNumeric" Wrap="False" BackColor="White" Font-Size="Large" /></telerik:RadGrid>