This is a migrated thread and some comments may be shown as answers.

pages clientIDMode="Static" ArgumentException

3 Answers 161 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris Marisic
Top achievements
Rank 1
Chris Marisic asked on 16 May 2010, 09:49 PM
I have a page with a RadScriptManager & RadStyleSheetManager and a few RadGrids (no ajax manager) when I set

<pages clientIDMode="Static"

In the web.config when I run my page I encounter this error

Value cannot be null or empty.
Parameter name: elementID

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Value cannot be null or empty.
Parameter name: elementID

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Value cannot be null or empty.
Parameter name: elementID]
System.Web.UI.ScriptControlDescriptor..ctor(String type, String elementID) +744161
Telerik.Web.UI.RadAjaxManager.GetScriptDescriptors() +127
System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) +176
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +315
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +48
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +667
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5274


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


I don't even have a radajaxmanager on the page. This error is very confusing.

If I change the clientID mode back to either AutoID for the 3.5 and earlier standard or predictable this error goes away. I'd like to use static naming though.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 May 2010, 02:32 PM
Hi Chris,

I just posted a sticky note about this problem in the RadControls for ASP.NET AJAX forums. You can found information about how to fix the bug at ClientIdMode support for ASP.NET 4.0.

Kind regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Chris Marisic
Top achievements
Rank 1
answered on 17 May 2010, 02:41 PM
What control would I want to set specifically to use AutoID? Would that be the scriptmanager?
0
Rumen
Telerik team
answered on 17 May 2010, 04:17 PM
Hi Chris,

You should set the ClientIDMode property to AutoID directly in the RadGrid control declaration.
If you still experience the problem set the ClientIDMode attribute to AutoID in the @Page directive.

Best regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Chris Marisic
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Chris Marisic
Top achievements
Rank 1
Share this question
or