Passing a string from javascript to server side code
<p>I want to get a string from javascript, pass it to server side code and then store it in a database. my problem is that i do not know which is the best way of passing a string from javascript to server side. </p>

<p>From my research I found that many suggest using ajax xmlhttprequest but I haven't really found any good examples on how to actually use it when passing a string. if anyone knows any good sources that would be of great help.  </p>

<p>thanks</p>
