Saturday, March 24, 2012

ATLAS to AJAX updating

Hey!

I have built a community site that uses a early version of ATLAS:

When you are looking at a post (like this onehttp://www.znize.se/com/community/communityReplys.aspx?threadId=13)there is buttons for quote on every post. When quote button is pushed aJavacript is used to collect data from the server like this:

onclick="getCommunityQuote(68)"
function getCommunityQuote(replyId)
{  
    dataService.getCommunityQuote(replyId, callBack_getQuote);
}
function callBack_getQuote(result)
{
   var replyTextBox = getObj("txtMainTextBox");
   addTextToTextBox(replyTextBox,result);
}
dataService is a WebService that collect the information regarding the post and sends it back.

I wanted to use the AJAXcontrol toolkit(http://www.codeplex.com/Wiki/View.aspx?ProjectName=AtlasControlToolkit)and to do this i needed to update the ATALS that are called AJAX.NET BETA 2today.

To update the site I followed this steps:

  1. Download AJAX.NET Beta 2 and Ajax control toolkit.
  2. Executed the AJAX.NET setup where I choose remove(remove the old version(ATLAS))
  3. Executed the AJAX.NET setup and choose install
  4. Unpacked and executed the Ajax control toolkit
  5. Removed the references in my project to the old AJAX(ATLAS)
  6. Followed the steps in the AJAX.NET migration doc(http://ajax.asp.net/files/Migration_Guide.doc) witch involved alot of web.config editing and moved the scriptmanager in my masterpage from <HEAD> to form(runat="server").
  7. Included the Ajax control toolkit dll as a reference, the AJAX.net references is not longer needed becource it's placed in the GAC.

I can find all the Ajax controls and i can render the AJAX control toolkit Rating control without problem.

BUT, there is some problems:

  1. web.config have a schema(original) to validate against and it simes like this doesn't support the AJAX.NET syntax? I get allot of information(not varnings or errors just information) (over 100) about this, ex name do not exist. When I look in the example web.config from AJAX.NET there is no schema stated? Should I remove it?
  2. There was stated in the migration doc that the content of a searten tag should be moved to another. The content in my project was 3 dataconverters. After moving this dataconverters they are not working any more (cant compile)?? So I hade to removed them for now to be able to compile the site.
  3. My old Ajax implementation that I explained before isnot working anymore?
  4. When I upload the site to my web hotel the site will not open, instead a error shows? Does the web hotel have to install the AJAX.NET BETA 2?
  5. I have tryed the updatePanel but its dosent simes to work?

Maybe anyone here can help me?

1. Don't worry about the schema issues.

2. The Toolkit prefix used to be atlasToolkit and now it's ajaxToolkit.

3. Not sure what you mean.

4. The hosting web site needs ASP.NET AJAX Beta 2 installed.

5. The SampleWebSite includes numerous instances of UpdatePanels in action.

No comments:

Post a Comment