I found two errors with your aspx page:

1) You need to add form tags to the page

2) The input should be type button, not type submit (AJAX will handle
the postback, the form does not need to post itself)

Use the following source as your aspx page.  HTH

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; >
<head id="Head1" runat="server">
    <title>my ajax page</title>
    <script type="text/javascript">
        function getTime()
        {
          _Default.GetServerTime(getTime_callback);
        }



        function getTime_callback(res)
        {
          alert(res.value);
        }


    </script>
</head>
<body>
<form runat="server">
    <input type="button" onclick="getTime()" />
</form>
    
</body>
</html>


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

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to