I want to add a functionality to a button named Find on my web page. There is a text input field to enter a number. When I click the Find button it has to get the number entered in the text input field and then search in a specific column of the SQL table. If there is a match found for the number in the SQL table column, it has to show the full row data along with the column headers in a modal window. For another button Findall, I am calling a webmethod inside webservice file using the Ajax function and it fetches all the records from the SQL table. My question also is whether i can use the same webservice ajax call for the Find button as well.
i tried creating a web method for this and tried to call this in the javascript using the ajax function statement but it did not work