Hi,
We have migrate Visual Studio 2005 to Visual Studio 2010 recently but we have to keep the framework 2.0.
Now, we have some errors like "Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors."
The problem occur with Internet Explorer 8
We use RadControls for ASP.NET AJAX.
I will give you a specific example.
We have a master page with the script manager.
----------------------------------------------------
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
----------------------------------------------------
In the content page, we use a ModalPopupExtender in a child page when a user click on a button into a list.
When the button is click, we receive the error "Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors."
This is the code for the content page
----------------------------------------------------
<telerik:RadAjaxPanel id="pnlPackage" runat="server">
<asp:Label ID="lblPopUpUsing" runat="server" Text="" CssClass="BlackArial10"></asp:Label>
<asp:Panel ID="pnlCopyPackage" runat="server" style="display:none">
<asp:Panel ID="pnlCopy" runat="server" CssClass="ModalWindowNoPadding" BackColor="White">
<uc:CopyPackageControl ID="copyPackageControl" runat="server" OnOnCopyPackage="copyPackageControl_OnCopyPackage"></uc:CopyPackageControl>
</asp:Panel>
</asp:Panel>
<cc2:ModalPopupExtender ID="CopyPackagePopupExt" runat="server"
TargetControlID="lblPopUpUsing"
PopupControlID="pnlCopyPackage"
BackgroundCssClass="ModalBackground">
</cc2:ModalPopupExtender>
<cc3:SOFGrid ID="gdvPackages" runat="server" AutoGenerateColumns="false" Skin="SOF" AllowCustomPaging="True"
PageSize="20" EnableEmbeddedSkins="false" AllowPaging="True" BorderWidth="0" BorderStyle="None"
AllowSorting="True" OnItemDataBound="gdvPackages_ItemDataBound" OnDeleteCommand="gdvPackages_DeleteCommand"
OnModifyCommand="gdvPackages_ModifyCommand" OnSortCommand="gdvPackages_SortCommand"
OnPageIndexChanged="gdvPackages_PageIndexChanged" OnPageSizeChanged="gdvPackages_PageSizeChanged"
OnCopyCommand="gdvPackages_CopyCommand"
AlternatingItemStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="Center">
<HeaderStyle HorizontalAlign="Center" />
<AlternatingItemStyle HorizontalAlign="left" />
<ItemStyle HorizontalAlign="left" />
<MasterTableView CellSpacing="-1" TableLayout="Auto" DataKeyNames="ConfigPackage_ID">
<ItemStyle cssclass="BlackArial10 BlueLineWithoutTop" HorizontalAlign="left"></ItemStyle>
<AlternatingItemStyle cssclass="BlackArial10 BlueLineWithoutTop" HorizontalAlign="left"></AlternatingItemStyle>
<SortExpressions>
<telerik:GridSortExpression FieldName="Description" SortOrder="Ascending" />
</SortExpressions>
<SortExpressions>
<telerik:GridSortExpression FieldName="ConfigEnvironmentCode" SortOrder="Ascending" />
</SortExpressions>
<SortExpressions>
<telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
</SortExpressions>
<SortExpressions>
<telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
</SortExpressions>
<Columns>
<telerik:GridBoundColumn ItemStyle-Width="30%" SortExpression="Name" ForceExtractValue="Always" HeaderText="" UniqueName="Name" DataField="Name">
<ItemStyle cssclass="BlackArial10Bold BlueLineWithoutTop"></ItemStyle>
</telerik:GridBoundColumn>
</Columns>
<Columns>
<telerik:GridBoundColumn ItemStyle-Width="30%" SortExpression="Description" ForceExtractValue="Always" HeaderText="" UniqueName="Description" DataField="Description"></telerik:GridBoundColumn>
</Columns>
<Columns>
<telerik:GridBoundColumn ItemStyle-Width="10%" SortExpression="ConfigEnvironmentCode" ForceExtractValue="Always" HeaderText="" UniqueName="ConfigEnvironmentCode" DataField="ConfigEnvironmentCode"></telerik:GridBoundColumn>
</Columns>
<Columns>
<telerik:GridTemplateColumn ItemStyle-Width="50%" SortExpression="DateModified" ItemStyle-HorizontalAlign="Left" DataField="DateEnvironnement" UniqueName="DateEnvironnement">
<ItemTemplate>
<asp:label ID="lblConfigAssociatedServer" Runat="server" Text="*Server"></asp:label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<Columns>
<telerik:GridButtonColumn CommandArgument="ConfigEnvironmentCode" ConfirmDialogType="RadWindow"
ConfirmTitle="Copy" ButtonType="ImageButton" CommandName="Copy" Text="Copy"
UniqueName="CopyColumn" ShowInEditForm="False" ImageUrl="~\Image\icon_copy.gif">
<ItemStyle CssClass="CursorHand CenterAlign" />
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandArgument="ConfigEnvironmentCode"
ConfirmTitle="Modify" ButtonType="ImageButton" CommandName="Modify" Text="Modify"
UniqueName="ModifyColumn" ShowInEditForm="False" ImageUrl="~\Image\icon_edit.gif">
<ItemStyle CssClass="CursorHand CenterAlign" />
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandArgument="ConfigEnvironmentCode" ConfirmDialogType="RadWindow"
ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
UniqueName="DeleteColumn" ImageUrl="~\Image\icon_delete.gif">
<ItemStyle CssClass="CursorHand CenterAlign" />
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="True" EnableRowHoverStyle="true">
<Scrolling EnableVirtualScrollPaging="false" AllowScroll="false" UseStaticHeaders="false" />
</ClientSettings>
<HeaderContextMenu EnableEmbeddedSkins="False"></HeaderContextMenu>
<FilterMenu EnableEmbeddedSkins="False"></FilterMenu>
</cc3:SOFGrid>
</telerik:RadAjaxPanel>
----------------------------------------------------
Can anyone help me on this problem ?
Thanks
We have migrate Visual Studio 2005 to Visual Studio 2010 recently but we have to keep the framework 2.0.
Now, we have some errors like "Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors."
The problem occur with Internet Explorer 8
We use RadControls for ASP.NET AJAX.
I will give you a specific example.
We have a master page with the script manager.
----------------------------------------------------
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
----------------------------------------------------
In the content page, we use a ModalPopupExtender in a child page when a user click on a button into a list.
When the button is click, we receive the error "Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors."
This is the code for the content page
----------------------------------------------------
<telerik:RadAjaxPanel id="pnlPackage" runat="server">
<asp:Label ID="lblPopUpUsing" runat="server" Text="" CssClass="BlackArial10"></asp:Label>
<asp:Panel ID="pnlCopyPackage" runat="server" style="display:none">
<asp:Panel ID="pnlCopy" runat="server" CssClass="ModalWindowNoPadding" BackColor="White">
<uc:CopyPackageControl ID="copyPackageControl" runat="server" OnOnCopyPackage="copyPackageControl_OnCopyPackage"></uc:CopyPackageControl>
</asp:Panel>
</asp:Panel>
<cc2:ModalPopupExtender ID="CopyPackagePopupExt" runat="server"
TargetControlID="lblPopUpUsing"
PopupControlID="pnlCopyPackage"
BackgroundCssClass="ModalBackground">
</cc2:ModalPopupExtender>
<cc3:SOFGrid ID="gdvPackages" runat="server" AutoGenerateColumns="false" Skin="SOF" AllowCustomPaging="True"
PageSize="20" EnableEmbeddedSkins="false" AllowPaging="True" BorderWidth="0" BorderStyle="None"
AllowSorting="True" OnItemDataBound="gdvPackages_ItemDataBound" OnDeleteCommand="gdvPackages_DeleteCommand"
OnModifyCommand="gdvPackages_ModifyCommand" OnSortCommand="gdvPackages_SortCommand"
OnPageIndexChanged="gdvPackages_PageIndexChanged" OnPageSizeChanged="gdvPackages_PageSizeChanged"
OnCopyCommand="gdvPackages_CopyCommand"
AlternatingItemStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="Center">
<HeaderStyle HorizontalAlign="Center" />
<AlternatingItemStyle HorizontalAlign="left" />
<ItemStyle HorizontalAlign="left" />
<MasterTableView CellSpacing="-1" TableLayout="Auto" DataKeyNames="ConfigPackage_ID">
<ItemStyle cssclass="BlackArial10 BlueLineWithoutTop" HorizontalAlign="left"></ItemStyle>
<AlternatingItemStyle cssclass="BlackArial10 BlueLineWithoutTop" HorizontalAlign="left"></AlternatingItemStyle>
<SortExpressions>
<telerik:GridSortExpression FieldName="Description" SortOrder="Ascending" />
</SortExpressions>
<SortExpressions>
<telerik:GridSortExpression FieldName="ConfigEnvironmentCode" SortOrder="Ascending" />
</SortExpressions>
<SortExpressions>
<telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
</SortExpressions>
<SortExpressions>
<telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
</SortExpressions>
<Columns>
<telerik:GridBoundColumn ItemStyle-Width="30%" SortExpression="Name" ForceExtractValue="Always" HeaderText="" UniqueName="Name" DataField="Name">
<ItemStyle cssclass="BlackArial10Bold BlueLineWithoutTop"></ItemStyle>
</telerik:GridBoundColumn>
</Columns>
<Columns>
<telerik:GridBoundColumn ItemStyle-Width="30%" SortExpression="Description" ForceExtractValue="Always" HeaderText="" UniqueName="Description" DataField="Description"></telerik:GridBoundColumn>
</Columns>
<Columns>
<telerik:GridBoundColumn ItemStyle-Width="10%" SortExpression="ConfigEnvironmentCode" ForceExtractValue="Always" HeaderText="" UniqueName="ConfigEnvironmentCode" DataField="ConfigEnvironmentCode"></telerik:GridBoundColumn>
</Columns>
<Columns>
<telerik:GridTemplateColumn ItemStyle-Width="50%" SortExpression="DateModified" ItemStyle-HorizontalAlign="Left" DataField="DateEnvironnement" UniqueName="DateEnvironnement">
<ItemTemplate>
<asp:label ID="lblConfigAssociatedServer" Runat="server" Text="*Server"></asp:label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<Columns>
<telerik:GridButtonColumn CommandArgument="ConfigEnvironmentCode" ConfirmDialogType="RadWindow"
ConfirmTitle="Copy" ButtonType="ImageButton" CommandName="Copy" Text="Copy"
UniqueName="CopyColumn" ShowInEditForm="False" ImageUrl="~\Image\icon_copy.gif">
<ItemStyle CssClass="CursorHand CenterAlign" />
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandArgument="ConfigEnvironmentCode"
ConfirmTitle="Modify" ButtonType="ImageButton" CommandName="Modify" Text="Modify"
UniqueName="ModifyColumn" ShowInEditForm="False" ImageUrl="~\Image\icon_edit.gif">
<ItemStyle CssClass="CursorHand CenterAlign" />
</telerik:GridButtonColumn>
<telerik:GridButtonColumn CommandArgument="ConfigEnvironmentCode" ConfirmDialogType="RadWindow"
ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
UniqueName="DeleteColumn" ImageUrl="~\Image\icon_delete.gif">
<ItemStyle CssClass="CursorHand CenterAlign" />
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="True" EnableRowHoverStyle="true">
<Scrolling EnableVirtualScrollPaging="false" AllowScroll="false" UseStaticHeaders="false" />
</ClientSettings>
<HeaderContextMenu EnableEmbeddedSkins="False"></HeaderContextMenu>
<FilterMenu EnableEmbeddedSkins="False"></FilterMenu>
</cc3:SOFGrid>
</telerik:RadAjaxPanel>
----------------------------------------------------
Can anyone help me on this problem ?
Thanks