0

Hi i have two javascript values and i want to store that values in the gridview so hows this is possible

1
  • i want that details to be stored in the database (MYSQL) so how can we store Commented Feb 6, 2010 at 6:57

1 Answer 1

0

If you want to update your database with values in javascript then you can use AJAX. Issue a POST request to the server and call your desired method from your code behind file.

Edit

You can build an XMLHTTPRequest object and using its different methods you can build a post request.

You can start from here

Using XMLHttpRequest

If you can use a framework like jQuery it has lot of inbuilt function for performing ajax tasks. Take a look at jQuery AJAX.

1
  • but give me example of that ajax example of posting Commented Feb 6, 2010 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.