Hi,
the code is working ok, as I can see. Are you using the build-in web
server of Visual Studio .NET 2005? If yes, which version of Ajax.NET
are you using. See http://www.ajaxpro.info/changes.txt, there was a
change that fixed this bug.
Regards,
Michael
On 5/18/06, Leo <[EMAIL PROTECTED]> wrote:
>
> Hello!
> I'm a novice of Ajax.NET;
> I debug the example on quickguide.aspx with vs2005,but I get some
> matter.Under is my code:
> ///////////////////javascript///////////////////////////////////
> function getServerTime()
> {
> _Default.GetServerTime(getServerTime_callback); //
> asynchronous call
> }
>
>
> function getServerTime_callback(res)
> {
> alert(res.value);
> }
> ///////////////html///////////////////////////
> <a href="javascript:getServerTime();void(0)">Click me</a>
>
> ///////////////////////default.aspx.cs/////////////////////////////////
> ublic partial class _Default : System.Web.UI.Page
> {
> protected void Page_Load(object sender, EventArgs e)
> {
> //注册方法
> AjaxPro.Utility.RegisterTypeForAjax(typeof(_Default));
>
> }
>
> //用AjaxMethod属性进行标记
> [AjaxPro.AjaxMethod]
> public DateTime GetServerTime()
> {
> return DateTime.Now;
> }
>
> }
>
> When I click the link in IE6.0,sometimes I get nothing,sometime I get
> the time from server,but next click I get a warning of syntax error.
>
> Then what's wrong?
>
> Any suggestions or info that would be helpful would be appreciated.
> Thanks.
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---