日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

html 转换为cshtml,使用Html而不是csHtml

發(fā)布時間:2023/12/9 53 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html 转换为cshtml,使用Html而不是csHtml 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

我想使用純HTML頁面而不是使用MVC .net的cshtml . 但是當我通過右鍵單擊索引添加視圖時,我只能看到兩個選項 .

public class HomeController : Controller

{

//

// GET: /Home/

public ActionResult Index()

{

return View();

}}

Cshtml(剃刀)

Aspx

論壇但仍無濟于事 . 我仍然沒有看到添加html而不是cshtml的選項

我也嘗試直接添加html頁面到視圖文件夾,但我不知道如何從我的控制器功能指向該視圖 .

用Index.html替換Index.cshtml給了我這個錯誤

The view 'Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:

~/Views/Home/Index.aspx

~/Views/Home/Index.ascx

~/Views/Shared/Index.aspx

~/Views/Shared/Index.ascx

~/Views/Home/Index.cshtml

~/Views/Home/Index.vbhtml

~/Views/Shared/Index.cshtml

~/Views/Shared/Index.vbhtml

總結

以上是生活随笔為你收集整理的html 转换为cshtml,使用Html而不是csHtml的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。