You can send ajax request to the server that will be made through jQuery. You donot need to append any additional headers with the request but the web page you're trying to get would be required.
For instance, this is your server-side code to get the data from the database,
var db = Database.Open("database_name");
var selectQuery = "SELECT * FROM table_name WHERE column_name = value";
var result = db.Query(selectQuery);
// now generate the GridView for the result, and return the HTML// generated from the above code.
.. above code would return the HTML for the GridView of your database's table, usually that is the result that you want to show on the web page. You can read the data from database in any other method (SqlClient method) too. This was just an example.
Create a jQuery ajax request to capture that data, as this,
( document )。ready( function (){
(document).ready(function () {
.ajax({ url:' yourWebPage', 成功: function (数据){ // 已发送请求,并且已成功 // 服务器的结果保存在'data'
.ajax({
url: 'yourWebPage',
success: function (data) {
// a request was sent, and was successfull// the result from server is saved in 'data'