阅读背景:

将对象作为参数传递给桌面客户端的ASP .Net MVC中的ActionResult方法

来源:互联网 

Given the following code:

给出以下代码:

using (var client = new WebClient())
  {
    string url = string.Concat(someUrl, "SomeControllerName/", currentId, "/WriteLogFile");
    var toWrite = DateTime.Now

    /* Code to post object to URL goes here e.g. client.UploadValues(url, someNameValueCollectionObject)*/
  }
using (va



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: