Powered by Blogger.

Friday, February 14, 2014

unable to get property 'ui' of undefined or null reference ajaxcontroltoolkit



In this post we will discuss about how to resolve error message unable to get property 'ui' of undefined or null reference ajaxcontroltoolkit which comes while working with Ajax Control Toolkit.

Also you can check out my previous posts on:

- Show confirmation message in gridview for delete in Asp.net

- Create generics lists in C#.Net

- How to check the strength of the password using PasswordStrength Ajax control in asp.net?

The full error message was:

unable to get property 'ui' of undefined or null reference ajaxcontroltoolkit

Unhandled exception at line 67, column 35 in http://localhost:37487/Default5.aspx

0x800a138f - JavaScript runtime error: Unable to get property 'UI' of undefined or null reference

Solution:
We need to register AjaxToolKit perfectly.

You can write like below:

Register like below:

<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>

And then put the below line inside the <form> tag.

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

Now the error will not come.





0 comments

Post a Comment