Also you should add some code to WebForm1.js like this:
HTML
....
<input type="button" name="myButton" id="myid"
onclick="getServerTime"/>
....
JS
..
function getServerTime()
{
   Ajaxajax.WebForm1.GetServerTime(_doTimeCallback);
}

function _doTimeCallback(res)
{
  allert(res.value);
}
...
and this is all. To add onclick event to asp controls use
myControl.Attributes.Add("onclick", "MyJsFunction(); return false;")


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

Reply via email to