Click here to Skip to main content
15,888,060 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have a requirement that, I had n no of rows in my SQL DB. I need to fetch the row count and show on "ButtonClick" Event using Jquery. Kindly can any one guide me on the same.

What I have tried:

Need to fetch the count of records from the SQL DB to show the row count in the POpup using Jquery
Posted
Updated 1-Jun-16 23:48pm
v2

1 solution

basically you need a 'WebMethod' to handle database operation in JQuery, use datatype as 'json' for connection and return type.
see below snippet for more details
Retrieve data from Database and display on page using jQuery AJAX in ASP.Net[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900