I have a textbox to enter username and a dropdown to select role. When i chick an “Add” button i need to add these values to a table. I will need to add more usernames and their roles to the table whin “Add” is clicked. I need to attain this without postback( ie AJAX). Also I will Save this table to database when “Save” button is clicked. How can i attian this? I am totally not aware of JQuery or JSON result.
Share
in the browser (with jquery):
on the server you’ll have a json string specifying a json object with an array in it, packed with objects. You can find out more about unpacking a json string at http://www.json.org/