Guest User

Guest User

  • Tech Writer
  • 31
  • 22.7k

Read values sent to ASP page from jQuery get/post/ajax in c#

May 10 2017 2:59 AM
How to read values sent to aspx page through jQuery function in aspx.cs file?
Someone pls help.

  1. $(function () {  
  2.         $("#button").click(function () {  
  3.             alert("You clicked Submit button");  
  4.             $.post('Insert.aspx', {StudentId: 'B1111', StudentName: 'Likhit'}, function () {  
  5.                   
  6.                 });  
  7.             });  
  8.             $("#studenttable").append("<tr><td>B1111</td><td>Likhit</td></tr>");  
  9.         });  
this is my function, How to read StudentId & Student Name in aspx.cs program?  


Answers (2)