有谁知道我将如何在WebMatrix ASP.Net Web Pages中编写以下内容?
return Content(Constants.Gateway.WebhookNotification.Verify(Request.QueryString["bt_challenge"]));
我认为return Content方法仅由MVC使用吗?
这取决于您要对表达式的结果执行什么操作,但是可以将其呈现给浏览器,如下所示:
@Constants.Gateway.WebhookNotification.Verify(Request.QueryString["bt_challenge"]))
或者,您可以将其存储在变量中:
var myVar = Constants.Gateway.WebhookNotification.Verify(Request.QueryString["bt_challenge"]));
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句