c# - post the user text to the server using $.post() -


Hello, to update my page using the user / javascript Hi.

  & lt; Script type = "text / javascript" & gt; Val (); $ ('Textarea') Val (''); $ ('# Test1') .andand ('
' + x + '';) return false;});}); & Lt; / Script & gt; & Lt; Textarea style = "border: 0" cols = "77" lines = "2" & gt; Write something ... & Lt; / Textarea & gt; & Lt; Button & gt; Post message & lt; / Button & gt; & Lt; Div id = "test1" & gt; & Lt; / Div & gt; & Lt; / ASP: Content & gt;

I am trying to post the user text on the server using $ .post (), I do not know how to handle it on the ASPX page on the server Handles those requests, and for the content Mysql DB?

If a client requests a updated page, then send the page frame in the same way, but use it with a repeater or any other looping to add content from DB to the content. & Lt; - How to do it uncertain?

You need to create a service, and then there is to direct your post in the service method. . You can save the data from that service method to your MySQL db

If you are trying to do this, then the user can see some types of events, though you can say that this Probably not supported

  function runexax (targetURL, dataInput, success) {$ .zx ({1} Url: targetURL, type: "post", type of content: "app / jason; Charset = UTF-8 ", data: data input, data type:" Jason ", success: success, async: true}); }   

and then:

  runAjax ("yourService.asmx / ServiceMethod", "{parameter:" + dataFromYourListBox + "}", function (data ) {// Update DOM});    

Comments