Wednesday, March 28, 2012

UpdatePanel

hi,

i have web site in asp.net and i want ti use the ajax controls. i have changed my webConfig as it's described in http://www.asp.net/AJAX/Documentation/Live/default.aspx

my xml file webconfig has no error but when i add a updatepanel to an aspx page this make an error, the compiler can't identify the control.

please help me if u know waht is the problem.

thanks

Hi there

You also need to register the AJAX DLL in your web page at the top of your aspx file, e.g.


<%@. Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %
Cheers

Mike


hi

i have added what you have mentioned Mikey65 and i can execute the aspx page now. but there is an other problem, the compiler underlined the ajax element in the pages as errors!

i dont now why?


Do you also have references to the web.extensions dlls in your project references??

Cheers

Mike


Hi,

DO u have this in ur web.config.

make the tag prefix name to some thing else then asp if this code in ur applications has it asaddtagPrefix="asp"

I have made it to ajax.

try this and it may work

<pagestheme="DefaultTheme">

<controls>

<addtagPrefix="ajax"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</controls>

</pages>


<%@. Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="ajax" %>

http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx

No comments:

Post a Comment