开发者

Easy question: How to see design view in VS 2010 when editing an ASP.NET MVC 2 partial view? (ascx)

I am editing and have already saved a Vendor.ascx partial view in VS 2010. Since the html snippet would be very simple, I thought I would look at it in Design View, however the tab is no wh开发者_如何学Cere to be seen. I haven't seen any options in the menus either. Any idea how to turn on Design view when editing an MVC .ascx partial view?


Apparently the Design View is off by default. You need to go to Options, check "Show all settings", scroll down to "HTML Designer", select "Enable HTML designer (requires restart of Visual Studio)", restart, and bingo, three tabs at the bottom "Design", "Split", and "Source". It actually renders the ascx file pretty well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜