如何在Asp.Net Web应用程序中注册和使用Bundle [英] How to Register and consume Bundle in Asp.Net Web Application

查看:130
本文介绍了如何在Asp.Net Web应用程序中注册和使用Bundle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Asp.Net Web应用程序[.Net Framework 4]中实现捆绑功能。我搜索了很多但没有文章。任何人都可以建议我文档或演示如何在Asp.Net Web应用程序中使用捆绑的机制。我已经完成了以下文章,但没有任何帮助,因为他们离开了我的需求:

1. http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification ,[在MVC中]

2。 http:// blogs.msdn.com/b/rickandy/archive/2012/08/15/adding-web-optimization-to-a-web-pages-site.aspx [本文使用Razor不展示Asp中的实现.Net Web应用程序或网站。]

3. http://blogs.msdn.com/b/rickandy/archive/2012/08/14/adding-bundling-and-minification-to-web-forms.aspx [这个用于表单没有帮助。]

解决方案

使用捆绑(和缩小),MVC和ASP.NET之间没有区别。所以你在第一篇文章中得到的结果非常合适。

您还可以在VS 2013中创建一个新的WEB(ASP.NET)应用程序,您将获得所有热门部分的良好工作样本。 ..

I am trying to implement Bundling feature in Asp.Net web Application[.Net Framework 4].I googled a lot but "NO Article". Can any one suggest me document or demonstrate a mechanism for How to use bundling in Asp.Net Web Application. I have already gone through following Articles but none helped as they flew away from my needs :
1. http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification, [in MVC]
2. http://blogs.msdn.com/b/rickandy/archive/2012/08/15/adding-web-optimization-to-a-web-pages-site.aspx [this article uses Razor not showcases the implementation in Asp.Net Web Application or Web Site.]
3. http://blogs.msdn.com/b/rickandy/archive/2012/08/14/adding-bundling-and-minification-to-web-forms.aspx [this one is for forms did not help.]

解决方案

With bundling (and minification) there is no difference between MVC and ASP.NET. So what you got in the first article is perfectly fits.
You also can crate a new WEB (ASP.NET) application in VS 2013 and you will get a good working sample of all the hot parts...


这篇关于如何在Asp.Net Web应用程序中注册和使用Bundle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆