I am trying to use a rounded corners extender on an aspx page for an asp:Panel control (I have also tried the drop shadow extender). When I run the application I get the error message: Microsoft JScript runtime error: Unable to get the value of the property
UI: object is null or undefined.
The project is just a standard VS2010 .Net 4, C# Web Application. The page is in the ~/Forms sub-directory of the project and is protected by a web.config in that directory which contains a "deny users="?" section. The user cannot access the page until
they have logged in.
If I remove the reference to the rounded corners extender from the page, everything works fine (except not rounded corners), when I add the markup back, the application again fails.
After a little testing I found that if I move the the aspx page to the root directory of the application where the user does not have to login, the error message goes away and the rounded corners extender then works.
It also works if I remove the web.config from the sub-directory (and remove the access protection)
Would anyone have a work-a-round for getting it working with the access protection?
It is likely under rules of permission, some of the scripts may not loaded into the browser. If you've got IE9, FireBug in Firefox, or Chrome. Try debug to see if the HTTP response of the scripts successfully come back.
If you are building application for new browsers like IE9, consider CSS property border-radius property to replace RoundedCorner
AndyW2009
Member
55 Points
48 Posts
AjaxControlToolkit issue: Unable to get the property UI
May 28, 2012 10:10 PM|LINK
Hi Folks,
I am trying to use a rounded corners extender on an aspx page for an asp:Panel control (I have also tried the drop shadow extender). When I run the application I get the error message: Microsoft JScript runtime error: Unable to get the value of the property UI: object is null or undefined.
The offending line is:-
$create(Sys.Extended.UI.RoundedCornersBehaviour, { "id":"MainContent_RCE"},null,null,$get("MainContent_pnlX"));
The project is just a standard VS2010 .Net 4, C# Web Application. The page is in the ~/Forms sub-directory of the project and is protected by a web.config in that directory which contains a "deny users="?" section. The user cannot access the page until they have logged in.
If I remove the reference to the rounded corners extender from the page, everything works fine (except not rounded corners), when I add the markup back, the application again fails.
After a little testing I found that if I move the the aspx page to the root directory of the application where the user does not have to login, the error message goes away and the rounded corners extender then works.
It also works if I remove the web.config from the sub-directory (and remove the access protection)
Would anyone have a work-a-round for getting it working with the access protection?
Regards
Andy
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: AjaxControlToolkit issue: Unable to get the property UI
May 30, 2012 04:25 AM|LINK
Hello
If you are using ScriptManager, instead of it, try ToolkitScriptManager see if it walks you around. http://ajaxcontroltoolkit.codeplex.com/workitem/26755?ProjectName=ajaxcontroltoolkit
It is likely under rules of permission, some of the scripts may not loaded into the browser. If you've got IE9, FireBug in Firefox, or Chrome. Try debug to see if the HTTP response of the scripts successfully come back.
If you are building application for new browsers like IE9, consider CSS property border-radius property to replace RoundedCorner
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
chetan.sarod...
All-Star
65619 Points
11118 Posts
Re: AjaxControlToolkit issue: Unable to get the property UI
May 31, 2012 03:27 AM|LINK
http://ajaxcontroltoolkit.codeplex.com/workitem/26907
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
AndyW2009
Member
55 Points
48 Posts
Re: AjaxControlToolkit issue: Unable to get the property UI
Jun 01, 2012 12:10 AM|LINK
Setting CombineScripts="false" on the toolscript manager on the master page appears to have fixed this issue.
Many thanks
Andy
babysuman200...
Member
2 Points
1 Post
Re: AjaxControlToolkit issue: Unable to get the property UI
Jan 30, 2013 12:29 PM|LINK
CombineScripts="false" worked for resolving Sys.Extended is Undefined error.
Thank you.
babysuman