ScriptManager.RegisterStartupScript( |
dock, |
GetType(), |
"AddDock" + controlId, |
string.Format(@"function _addDock{2}() {{ |
Sys.Application.remove_load(_addDock{2}); |
$find('{1}').dock($find('{0}')); |
$find('{0}').doPostBack('DockPositionChanged'); |
}}; |
Sys.Application.add_load(_addDock{2});", dock.ClientID, FindControl(zone).ClientID, controlId), true); |
The error that IE8 gives is
---------------
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Sat, 21 Mar 2009 03:52:04 UTC
Message: Invalid argument.
Line: 597
Char: 1
Code: 0
URI: /ScriptResource.axd?d=XKpUX8S7IKwR9HGDHQJQ7PjplCbQNpuJI5GQbMZueaFWR37nx5jBKBTPzX59hwo70&t=ffffffffafb50a67
---------------
We noticed that we view the output of this script resource in other browsers we get the javascript output but when we try to view it using IE8 we get compressed output. When checked we could see that there is HTTP compression being applied to the resource, but we haven't setup any HTTP compression for this project yet.
Are the Telerik controls compressing the output for their Scripts and if so, is there any way to turn this compression off so that we can validate this theory that IE8 isn't decompressing the Gzipped output properly.
Regards,
Jason
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
Width
=
"590px"
Height
=
"140px"
EmptyMessage
=
"Type something here"
OnItemsRequested
=
"RadCombobox2_ItemsRequested"
EnableLoadOnDemand
=
"true"
>
</
telerik:RadComboBox
>
protected
void
RadCombobox2_ItemsRequested(
object
o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
{
for
(
int
i=0;i<mono.M_content.Count;i++)
{
if
(mono.M_content[i].M_type == 0)
{
RadComboBox1.Items.Add(
new
RadComboBoxItem(mono.M_content[i].C_Description.ToString()));
}
}
}
protected
void
Button1_Click(
object
sender, EventArgs e)
{
label12.Text = RadComboBox1.SelectedValue.ToString();
//RadEditor1.Content = test;
}
<
telerik:RadGrid
ID
=
"rgd_User_List"
runat
=
"server"
AllowSorting
=
"True"
DataSourceID
=
"sds_User_Lookup"
GridLines
=
"None"
AllowPaging
=
"True"
PageSize
=
"200"
>
<
ClientSettings
AllowColumnsReorder
=
"True"
ReorderColumnsOnClient
=
"True"
>
</
ClientSettings
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
AlwaysVisible
=
"true"
HorizontalAlign
=
"Center"
Position
=
"TopAndBottom"
>
</
PagerStyle
>
<
MasterTableView
AutoGenerateColumns
=
"False"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"IDStaff"
DataSourceID
=
"sds_User_Lookup"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
ShowAddNewRecordButton
=
"False"
ShowExportToCsvButton
=
"True"
ShowRefreshButton
=
"False"
/>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
/>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
/>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridTemplateColumn
DefaultInsertValue
=
""
HeaderText
=
" "
UniqueName
=
"TemplateColumn1"
>
<
itemtemplate
>
<%# Container.ItemIndex+1 %>
</
itemtemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"LastName"
HeaderText
=
"Last Name"
SortExpression
=
"LastName"
UniqueName
=
"LastName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"FirstName"
HeaderText
=
"First Name"
SortExpression
=
"FirstName"
UniqueName
=
"FirstName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"IDStaff"
HeaderText
=
"Staff ID"
SortExpression
=
"IDStaff"
UniqueName
=
"IDStaff"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"IDBitech"
HeaderText
=
"BiTech ID"
SortExpression
=
"IDBitech"
UniqueName
=
"IDBitech"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"UserName"
HeaderText
=
"User Name"
SortExpression
=
"UserName"
UniqueName
=
"UserName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Password"
HeaderText
=
"Password"
SortExpression
=
"Password"
UniqueName
=
"Password"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"JobTitle"
HeaderText
=
"Job Title"
SortExpression
=
"JobTitle"
UniqueName
=
"JobTitle"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PhoneIP"
HeaderText
=
"IP Phone"
SortExpression
=
"PhoneIP"
UniqueName
=
"PhoneIP"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
DataField
=
"Restraints"
HeaderText
=
"Restraints"
SortExpression
=
"Restraints"
UniqueName
=
"Restraints"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"RestraintsLabel"
runat
=
"server"
Text='<%# Eval("Restraints") %>'></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridHyperLinkColumn
DataNavigateUrlFields
=
"UserName"
DataNavigateUrlFormatString
=
"user_details.aspx?UserName={0}"
Text
=
"Details"
UniqueName
=
"UserName"
>
<
ItemStyle
CssClass
=
"radgrid"
/>
</
telerik:GridHyperLinkColumn
>
<
telerik:GridHyperLinkColumn
AllowFiltering
=
"False"
DataNavigateUrlFields
=
"EmailAddress"
DataNavigateUrlFormatString
=
"mailto:{0}"
HeaderText
=
" "
ItemStyle-HorizontalAlign
=
"Center"
UniqueName
=
"EmailAddress"
>
<
ItemStyle
CssClass
=
"radgrid"
Width
=
"50px"
/>
</
telerik:GridHyperLinkColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Protected
Sub
rgd_User_List_ItemDataBound(sender
As
Object
, e
As
Telerik.Web.UI.GridItemEventArgs)
Handles
rgd_User_List.ItemDataBound
If
TypeOf
e.Item
Is
GridDataItem
Then
Dim
item
As
GridDataItem =
DirectCast
(e.Item, GridDataItem)
Dim
value
As
String
= item(
"Restraints"
).Text
If
value =
"1"
Then
Dim
Restraints
As
Label =
DirectCast
(item(
"RestraintsLabel"
).Controls(0), Label)
Restraints.Visible =
False
End
If
End
If
End
Sub