Three minor questions about Atlas and ajaxpro. net!

Source: Internet
Author: User
The first problem is about ajaxpro. Net, which has never been solved and may not be solved this year.
The problem is as follows:
My development environment is vs. net2005, And the ajaxpro version is the latest version 5.11.4.2.
Error: syntax error
Source File: http: // localhost/wddhy/ajaxpro/CORE. ashx
Row: 3
Source code :
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The referenced namespace is not defined: wddhy is not define.
But I am clearly in the background registertypeforajax (this. GetType ());
I have never been able to find the cause. I wrote a letter to the author of ajax.net. He replied that his current development environment is 2003, so when we use 2005, problems may occur, because the core of ajaxpro.2.dll Code If there is an error, he will not upgrade his version to 2005 until next month, so it will take a long time for the author to solve this problem. He suggested that I use Atlas, because it is Ms, it should be better compatible. haha
I had to use Atlas, but there was also a problem. It was a simple problem. When I used js to call the asmx method, I also prompted that the namespace is not define !!! I am really depressed. I went to the Atlas forum in MS to ask for advice. I didn't care about it for two weeks. Maybe you have never encountered such a situation! Because I used the master, and then the mess was done, I did it in the head on the master page:
<Head runat = "server">
<Asp: contentplaceholder runat = "server" id = "scriptincludes">
<Atlas: script id = "script1" runat = "server" Path = "~ /Scriptlibrary/atlascompat. js"
Browser = "Mozilla"/>
<Atlas: script id = "script2" runat = "server" Path = "~ /Scriptlibrary/atlascompat. js"
Browser = "Firefox"/>
<Atlas: script id = "script3" runat = "server" Path = "~ /Scriptlibrary/atlascompat. js"
Browser = "applemac-Safari"/>
<Atlas: script id = "script4" runat = "server" Path = "~ /Scriptlibrary/atlascore. js "/>
<Atlas: script id = "script5" runat = "server" Path = "~ /Scriptlibrary/atlascompat2.js"
Browser = "applemac-Safari"/>
<Atlas: script id = "script6" runat = "server" Path = "~ /Scriptlibrary/atlasruntime. js "/>
<Atlas: script id = "script7" runat = "server" Path = "~ /Scriptlibrary/Atlas. js "/>
</ASP: contentplaceholder>
<Link href = "style.css" type = "text/CSS" rel = "stylesheet"/>
<Asp: contentplaceholder runat = "server" id = "head"/>
</Head>
When you add a content page, it also adds
<Asp: Content ID = "content1" contentplaceholderid = "scriptincludes" runat = "server">
</ASP: content>
At this time, you must remove all the content; otherwise, your atlas will not work, and this small problem will kill me.
The third small problem is that Atlas can be used to directly call server methods like ajax.net to get the return value?
For example, AJAX can be like this:
VaR A = mynamespace. myclass. mymethod (parameter). value;
But it is required in Atlas.
Mynamespace. myclass. mymethod (parameter, oncomplete );
Function oncomplete (RET)
{}
It is inconvenient to include the returned value in the RET parameter of oncomplete.
If I write alert (mynamespace. myclass. mymethod (parameter); the result is an [object]
Write alert (mynamespace. myclass. mymethod (parameter). Value); undefine!
I am dizzy. I still cannot solve the problem of posting on the Atlas forum of Ms. I don't know how to do it. It would be too inconvenient if I could only do this.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.