Pass a simple string from controller to a view MVC3

前端 未结 6 1850
青春惊慌失措
青春惊慌失措 2021-01-31 02:19

I know this seems pretty basic, and it should be, but I cant find out where I am going wrong. (I hve read other articles with similar titles on SO, and other resources on the we

6条回答
  •  情书的邮戳
    2021-01-31 02:54

    Just define your action method like this

    public string ThemePath()
    

    and simply return the string itself.

提交回复
热议问题