Sharing ASP.NET MVC partial views between projects

后端 未结 4 501
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 01:29

What is the best way to share a common Partial View between applications? I\'ve created a separate assembly containing my Partial View in an ascx file, some scripts that go wit

4条回答
  •  礼貌的吻别
    2021-02-04 01:59

    A nice question indeed.

    I would suggest avoiding ascx files and generating HTML manually in your HTML helpers. TagBuilder class does a great deal of help here.

提交回复
热议问题