uwenku
標簽列表
viewcontext
2
熱度
2
回答
獲取當前ViewContext在ASP.Net MVC
我有一個ASP.Net MVC JsonResult函數,我想返回一個PartialView的內容(內容必須使用Ajax加載,出於某種原因,我不能返回一個PartialViewResult)。 要呈現PartialView,我需要ViewContext對象。 如何獲取Action方法中的當前ViewContext對象?我甚至在我的操作方法中看不到HttpContext.Current。 我使用AS
asp.net-mvc
jsonresult
viewcontext
2010-01-07
1
熱度
1
回答
爲什麼ViewContext.ViewName不可用?
我讀它使用下面的代碼在網絡上幾個例子: Private Function SomeFunction(ByVal htmlhelper As HtmlHelper) As String Dim controller As Controller = htmlhelper.ViewContext.Controller If controller IsNot Nothing Then
asp.net-mvc
vb.net
viewcontext
2010-01-11
«
1
2
»
最新問題
1.
TensorFlow - 恢復(如果存在)
2.
阿帕奇氣流1.9從GitHub
3.
在add_custom_command中連接多個文件
4.
Laravel 5/Form安全(需要澄清)
5.
如何用虛假來表示可空值?
6.
Excel的數字格式損壞
7.
Activemq - 通過不穩定連接發送大文件的最佳協議
8.
「JBoss Tools Java Standard Tools AngularJS」將被忽略,因爲它已被安裝
9.
命令超時| Discord.js
10.
如何獲取此數據?