asp.net mvc3 return raw html to view

后端 未结 7 708
时光说笑
时光说笑 2020-12-13 08:01

Are there other ways I can return raw html from controller? As opposed to just using viewbag. like below:

public class HomeController : Controller
{
    publ         


        
7条回答
  •  情书的邮戳
    2020-12-13 08:37

    Give a try to return bootstrap alert message, this worked for me

    return Content("
    ×Thanks! updated successfully
    ");

    Note: Don't forget to add bootstrap css and js in your view page

    hope helps someone.

提交回复
热议问题