What's the best way to call a modal dialog in ASP.NET MVC using Twitter Bootstrap?

后端 未结 4 1258
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 10:48

I\'m currently using Twitter\'s Bootstrap toolkit on a new project and I had a question on the best way to use the modal dialog in ASP.NET MVC3.

Is the best practice

4条回答
  •  萌比男神i
    2020-12-04 10:52

    This really depends on your design, but you should have a template for the modals.

    On a single web app for example, you should have a template lying around that you would create a new instance from each time.

    Usually on a normal website you would want to store this template inside a js creation function, so that you won't have to send the file to the user each time via http, and they can have it cached.

提交回复
热议问题