Click here to Skip to main content
12,246,406 members (38,672 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET Javascript SQL-Server , +
Hello friends,

How can we save a data, which is inside javascript, to the database at a page that was done by Asp.NET (when page is refreshed, closed or changed to another page)?
Posted 10-Dec-12 4:02am
Comments
aspnet_regiis -i 10-Dec-12 9:10am
   
Assign the values from the javascript to the hidden field server controls and then save to database
ryanb31 10-Dec-12 10:52am
   
Or, call a webservice. jquery's ajax call.

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

u can use webservice or webmethod...
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100