namespace Nancy.Web
{
public class HomeModule:NancyModule
{
public HomeModule()
{
Get("/", r => "Hello,Nancy,i am running on ASP.NET Core");
Get("/{name}", r => "你好:" + r.name);
Post("/loadstr", r =>
{
var strRecive = this.Bind<InputStr>();
return strRecive.inputstr;
});
}
}
}
這是C#寫的,我用VB.net,上面POST部分我看不懂,估計是POST傳送字串吧?
我是想用VB.net傳送post,不知道傳送的字串如何收到?
客戶端命令: PostData("http://localhost:9000/admin/8976", "7311988"),那這個7311988如何得到呢?
在服務器端,POST應該怎么寫呢?我知道Me.Post("/admin/{lp}") = AddressOf Hellopost
這個lp可以接受字符8976,7311988如何接收呢?
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/113431.html
標籤:VB.NET
