¡@

Home 

2014/10/16 ¤W¤È 12:06:38

jquery Programming Glossary: pupilid

Calling ASP.NET server side method via JQuery

http://stackoverflow.com/questions/886903/calling-asp-net-server-side-method-via-jquery

WebMethod ScriptMethod public static void SendMessage string subject string message string messageId string pupilId send message Client side #btnSendMessage .live click function var subject #tbSubject .val var message #tbMessage .val var.. .live click function var subject #tbSubject .val var message #tbMessage .val var messageId #hdnMessageId .val var pupilId #hdnPupilId .val .ajax type POST url . MessagePopup.aspx SendMessage data subject subject message message messageId messageId.. .val .ajax type POST url . MessagePopup.aspx SendMessage data subject subject message message messageId messageId pupilId pupilId error function XMLHttpRequest textStatus errorThrown alert textStatus success function result alert success return..