function criarNota() { var note_id = jQuery.fn.stickyNotes.createNote(); alert("isto: "+note_id); PageMethods.criarNota(note_id,function(result) { // é enviado o ID da nota criada alert(result); }); }
[System.Web.Services.WebMethod] public static string criarNota(int note_id) { try { // receives note_id, execute sql statement and I get: // string text // int id return ...........; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)