ASP.NET MVC saves and reproduces data after publication

I am trying to figure out how to do the following:

1) After submitting the form, serialize the source data and store it in the database

2) Read these messages from db and play them by reposting them to the same URL

To explain my ultimate goal, we have three basic concepts: dev, acceptance, and production. I would like to be able to make changes to dev and then push the change to acceptance by making an identical entry.

Does anyone have any idea?

Thanks Paul

+3
source share
4 answers

- . GET, POST-, , , , .

, - , , . Sessoin ViewState , .

, RESTful, . , RESTful (http://en.wikipedia.org/wiki/Restful) , RESTful , - , .

, :

1) ActionFilters , . ActionFilters POST . , , / , .

2) ActionFilter (GET vs. POST, HttpContext.Current.Request.HttpMethod, ) URL-, mas. POST, (HttpContext.Current.Request.Form) JSON. JSON, ( , ), FORM, , JSON. , (HttpContext.Current.Request.Headers) , , .

System.Web.Script.Serialization.JavaScriptSerializer .

( , URL, , , ..).

3) MVC, . LoggingController, . URL. "" / "" , , .

JSON ( ) , "" . "" GET POST. - GET , .

POST JavaScript, . " POST, (, ..). ?"

"", w/JavaScript, POST wala, .

, "LoggingController" , .

, , , . "" ..

+4

. XML, JSON SQL- . .

, .

, - -, , .

+1

, , , http-, .

, (Maybee BeginRequest), :

  • Request.InputStream
  • Url
  • ( )

, , , , Request.InputStream. , .net, . - , .

0

- , .

, , :

Jmeter, Selenium, IOpus Fiddler. IOpus .

Soon you will see that this is a difficult way to do something and, possibly, saves you from having to implement your own recording / playback solution.

0
source

Source: https://habr.com/ru/post/1711602/


All Articles