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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---