IT Community - Software Programming, Web Development and Technical Support

I am getting 'Element 'UpdatePanel' is not a known element'

This is a discussion on I am getting 'Element 'UpdatePanel' is not a known element' within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, I am getting the following exception 'Element 'UpdatePanel' is not a known element. This can occur if there is ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-24-2008, 01:04 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile I am getting 'Element 'UpdatePanel' is not a known element'

Hi,
I am getting the following exception
'Element 'UpdatePanel' is not a known element. This can occur if there is a compilation error in the Web site' as warning.I want to clear this.I searched web in that i found 'change tagPrefix in web.config' to solve this.This is due to the use of Ajax.But in my web.config the tagPrefix found to be correct but still i am getting warning over this.Can anyone suggest the best way to solve this one?....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-25-2008, 01:08 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: I am getting 'Element 'UpdatePanel' is not a known element'

Hi,
I got the solution for this.Actually the 'Element 'UpdatePanel' is not a known element.This can occur if there is a compilation error in the Web site' is not an error.This is because the loss of the html intellisense in C#.You can eliminate the errors and warnings caused by this by opening the master page.

Step1:Open the page that contains update panel.It lists you error and warnings in errorlist.
Step 2:Open the master page.This will give you intellisense
Step 3:Now see the error list.No more errors and warnings will be there.The red line over update panel will be eliminated.

Last edited by poornima : 01-25-2008 at 01:10 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-25-2008, 03:24 AM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 399
rrrajesh84in is on a distinguished road
Default Re: I am getting 'Element 'UpdatePanel' is not a known element'

hi


the actual reason for this error is missing of script Manager tag which was used in ajax concepts.

i think u would have placed the script manager tag in your master page thats why the error goes after u open your master page.

you can avoid this error by also placing your script manager tag where ever necessary alone. It means in the page where u use your update panel tag.
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-29-2008, 01:09 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: I am getting 'Element 'UpdatePanel' is not a known element'

Hi,
Another way to solve this error is,

Web.Config
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
i) Change the tagprefix='asp' in web.config to tagprefix="ajaxToolkit" or whatever u want.
<controls>
<add tagPrefix="ajaxToolkit" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
ii)Then you have to change <asp:UpdatePanel> to <ajaxToolkit:UpdatePanel>, this removes the redline.But you will get require permissions error.
iii)To avoid 'requirePermission' error ,In the site master page define the register tag used for ajaxControlToolkit.
iv)In Master page change <asp:ScriptManager> to <ajaxToolkit:ScriptManager>
v)Now the errors and warnings in errorlist is completely avoided.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
filter element in Javascript array Jeyaseelansarc HTML, CSS and Javascript Coding Techniques 4 02-11-2008 07:25 AM
how to get element by its type seesamjagan HTML, CSS and Javascript Coding Techniques 3 01-02-2008 04:51 AM
How to display xml element to user? S.Vinothkumar HTML, CSS and Javascript Coding Techniques 5 11-12-2007 11:59 PM
How to select an element by id and swapping an image ? kingmaker HTML, CSS and Javascript Coding Techniques 2 10-27-2007 12:05 AM
How can I check whether a block element like a div with overflow as auto or scroll ha kingmaker HTML, CSS and Javascript Coding Techniques 1 09-18-2007 11:23 PM


All times are GMT -7. The time now is 06:35 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0