Retrieve Data from SQL Server and Dispaly using Jquery in Asp.net
Take the look at this: In the previous example we saw, How to insert data in database using jquery in asp.net ? now we will see how to display data in jquery in asp.net. Here we will use html page and a aspx.cs file. First Step: CreateTable with column name " Name " and " Email " Second Step: Create a new project Third Step: Add a html file in your project. Fourth Step: Create input textbox and a button with id "Button1". Fifth Step: Add the following code in the aspx.cs file [ WebMethod ] public static string InsertMethod( string Name) { string shashi = "" ; StringBuilder sb = new StringBuilder (); SqlConnection con = new SqlConnection ( "Data Source=PREETI-PC;Initial Catalog=Record;Integrated Security=True" ); { SqlCommand cmd = new SqlCommand ( "select * from Test where Name='" +Name+ "'" , con)