Wednesday, March 28, 2012

ASP.Net AJAX messing up my code and not known element???

I am trying to add AJAX Version 1.0 to an existing site and I believe I have added everything needed to the web.config file. Installed the AJAX Extensions in the GAC and added the AJAX Toolkit to the VS 2005 Toolbox.

When I drag AJAX items into my aspx pages I get red Squiggly Lines on the ScriptManager and UpdatePanel.

I just added a RequiredFieldValidator and it tells me that it is also not a known element.

Also I have noticed some strange new attributes in my html e..g.__designer:wfdid="w2"

What is going on, could somebody help me out, thanks, newbie

I forgot to mention that I am using Master and Content pages. When I add the AJAX Extensions such as ScriptManager to the Master page I have no red squiggly lines. I guess I have to add <form> tags to my content pages to make this all work.

Not true, I tried it and the red squiggle lines are gone but the page does not show up correctly. Basically the content page portion does not get displayed . So adding the <form> tag to the content page is not the solution.

What am I doint wrong?? Newbie


Fixed - here is a helpful article.

http://ajax.asp.net/docs/tutorials/UsingUpdatePanelMasterPages.aspx

No comments:

Post a Comment