MVC :: JS/CSS Optimization In Build Of Application?

Feb 26, 2010

I have a question related to MVC2, VS2010, AJAX Minifier 4.0 and Build.

I hope it is ok to ask here since it is related to my MVC2 project and probably other people in this forum might have done something like this.

Some time ago I found
SmallSharpTools Packer.NET in
Scott Hanselman's Blog:

I have been using it to minify and combine JS and CSS files. Not when building the MVC application but using a Console Application.

Now I found that Microsoft Ajax Minifier 4.0 already minifies CSS files.

The results seem good and it is a Codeplex project ... So I am planning to move from Packer.NET to Ajax Minifier.

To reduce the number of requests I combine JS files (usually the JQuery Plugins used into a single file JQuery.Plugins.min.js).

It seems Ajax Minifier does not combine files ...

I can include a class on the MVC project which minifies the files using Ajax Minifier and combines the ones that needs to be combined.

The question is: how to include this on the build process of the MVC Application ...

And how to delete the original files on the build version? I only need to have the minified versions after the build ...

View 1 Replies


Similar Messages:

How To Specify A Direct Build Name Directory Using TFS Build Of .net Web Application

May 11, 2010

I have a TFS build set up to deploy an ASP.net project to a test server.The build works great, and deploys to the test server fine, but instead of putting it into the Website directory that my IIS webserver is configured for, it puts the build into Website_20100511.6

Why is the date suffixed to the directory name? Is there a way to turn that off so I can publish directly to the Website?

View 1 Replies

Need To Build Web Application That Will Do:1 - Build Web Pages?

Jan 15, 2011

I need to build web application that will do:1 - build web pages. 1a - build template for page. 2 - add module(by module I mean ContacUs form, Search, Billing System...). Each module can be constructed by submodules or diveded to submodules 2a - build module(add form, textbox, button...) and that all
entered data by user could be saved in dbCan you advise me a DB structure that will contain it allI looked some cms db, but it's NOT this. Please, don't ask why I mess with it. I just need to build it.

View 2 Replies

C# - How To Build A Silverlight Application And Have It Work Under Application

Aug 7, 2010

If I need to build a silverlight application and have it work under my asp.net application!

Does that mean I have to create two different vs projects?

One for silverlight the other my asp.net application? Or I can have one in 1? What do I do?

View 3 Replies

Need To Build Web Application?

Jan 16, 2011

I need to build web application that will do:

1 - build web pages.
1a - build template for page.
2 - add module(by module I mean ContacUs form, Search, Billing System...). Each module can be constructed by submodules or diveded to submodules
2a - build module(add form, textbox, button...) and that all entered data by user could be saved in dbDB structure that will contain it allI looked some cms db, but it's NOT this.lease, don't ask why I mess with it. I just need to build it.

View 1 Replies

How To Build An Invoice Web Application

May 30, 2010

This is a database design question. I want to build an invoice web application, an invoice can have many items, and each user can have an inventory list of product items that they can store and choose to add to an invoice item.

My questions are:

1. Should I store all product inventory for all users using my application under one single table? Or have a separate product inventory table created for each user?

2. Is this even possible?

1 table is easier, but what if this single table grows too big, will I have a problem? (primary key INT).

View 4 Replies

Looking To Build An Application With The Scenario?

Mar 2, 2010

I was looking to build an application with the scenario:

1. The application is a Shared PowerPoint Presentation

2. There would be 2 users for the application, Admin and Client

3. Admin can upload presentations

4. Only Admin can control the flow of presentation and cLient can just see the changes

5. As-In Admin can select next slide or previous slide and correspondingly Client configuration changes

I was thinking of updating current values in Database and using AJAX for updates on Client end. But I want a notification kinda thing that would notify the Client as soon as the Admin changes slides.

View 1 Replies

Architecture :: How To Build Desk Web Application

Feb 3, 2011

i am currently working in a company in internal application, and going to build an online help desk system for company. And i've to create client and server view of the application.so can you please help me on this, will you please tell me what technologies will be needed to build this application.what are the best things i can add in my help desk system

View 5 Replies

Build An Absolute URL For The Host Currently In Use In An Application?

Mar 27, 2011

I am currently in a dev only phase of development, and am using the VS built-in web server, configured for a fixed port number. I am using the following code, in my MembershipService class, to build an email body with a confirmation link, but obviously this must change when I deploy to our prod host.[URL]How can I build this URL to always reflect the host that the code is running on, e.g. when deployed to prod the URL should be http://our-live-domain.com/Account/..etc.MORE INFO: This URL will is included in an email to a new user busy registering an account, so I cannot use a relative URL.

View 3 Replies

Build A Dashboard Interface For An Application?

May 12, 2010

I'd like to build a dashboard interface for an application I am working on. I want users to logon and get a birds eye view of the status of applications, outstanding issues, etc. I'm wondering if there are some good, pre-made controls rather than writing these from the ground up?

View 3 Replies

Web Forms :: How To Build Sketch Application

Jan 31, 2013

i am writing an app whereby users my have the ability to sketch plots eg an accident, a teacher in class etc.

In sketching these plots users should be able to paste photos as well.

I am not sure this can be done in asp.net however i heard that there maybe plugins that i can use? I found CKEditor but that does not quite do it..

View 1 Replies

VS 2008 - Unable To Build A Chat Application

Apr 7, 2010

I found the tutorial below to build a chat application for asp.net which fulfilled most of my requirements, i.e. written in vb and made use of database, however the second part is missing. [URL]

I was hoping someone may be able to point me in the direction the original author intended to extend this to cover multi rooms and hopefully multi users?

View 1 Replies

Web Forms :: How To Build Barcode Reading Into An Application

Sep 30, 2010

Can anyone point me to a resource for how to build barcode reading into an ASP.net app? I need to scan a card and have it enter in the database that a person was present at a program that day.

View 5 Replies

Architecture :: Build Multi Tenant Application

Jan 24, 2010

im trying to build my first multi-tenant application, i used a shared database and it is complete now, i want to build the app now, and i tried this approach: all urls in the app have the following form ~/user/page.aspx(user directory is logical) where user is the current user, which is saved in a session after he logs in. when the user requests a page, say ~/user/profile.aspx, he is routed to the real page ~/profile.aspx and then his data are retrieved from the database. i dont think this is how multi tenant applications work, but i couldnt think of another method.

View 1 Replies

Preserve Session Variables In Web Application After Build?

Nov 15, 2010

Every time I build my web application, my session variables are lost from before the build. Is there anyway to preserve session variables during the build?

View 3 Replies

Security :: Build Custom Membership Provider In MVC 3 Web Application Using C#?

Feb 19, 2011

I am trying to build my own custom Membership Provider in an MVC 3 Web Application using C#.

Here is my code:

[Code]....

As you can see, I am just starting with it, and yet I've encountered problems. According to
this tutorial when I right click on MembershipProvider, I should get the option to [ Implement Abstract Class ], but I don't get that ! I am using Visual Studio 2010.

View 9 Replies

Build A Data Access Layer For New Web Based Application?

May 17, 2010

I was looking to build a Data Access Layer for my new web based application, I'm using ASP.NET. I'm want to build a framework not only for this application but also want to utilize it for my future projects.

Actually my main aim is to make a framework, from DAC, DAL, BL to GUI. I want suggestions from you guys that what should i adopt, what give me flexibility, which suits for both small and large size applications.

View 4 Replies

Why Application Creates Folder For Each Language When Add Resource File And Build

Oct 29, 2010

I'm working on resource files in windows application. After i'm adding the resource file in the project if i built the project it creates a separate folder for each language with language code(Spanish->es-ES, French->fr-FR..) and also it has one dll file for corresponding langage inside the folder. Why it is creating like this? Can't we avoid this?

View 2 Replies

Visual Studio :: How To Build A Web Application Project From Command Line

Jul 7, 2010

How do I build a web application project from command line using Web Developer Express 2010?

I am using the same command format that I would use with devenv.exe (Visual Studio), so I can evaluate us moving forward to VS2010. However, I am having real trouble building our code. Our solution consists of 4-5 projects, consisting of assemblies. The last assembly is the web site code. The root .sln file is the one which when opening in the IDE can click Rebuild All, and the DLL's of each project are generated and then brought into the website project.

However, when I run vwdexpress.exe from the command line nothing happens and no Dlls are generated. This is not giving me any confidence to run with VS2010.

the command line is like so:

C:inetpubwwwrootmyprojectvwdexpress /build release mysolution.sln

The in folders of each respective project are empty, but it takes 3-4 seconds for the command to finish, which gives me the impression it did something.

View 6 Replies

Configuration :: Using VS2008 To build / Compile Web Application And Then Publish It To The Server?

Jul 27, 2010

I'm relatively new to actually publishing sites on my own..Anyway, right now I am using VS2008 to build / compile my web application and then publish it to the server. Simple enough, until I want to change several of the code behinds, and don't want to spend 30 minutes re-publishing several thousand documents.

I have been reading that publishing via VS is not the best approach, so I guess I have two questions:

1. Using VS2008, is there a way to build the project and publish only certain parts of the project such as the pre-compiled code or better yet have VS only update the code that has been changed on the server? I suppose I could simply publish it to my local drive and pick apart the files from there / is there a better way?

2. In your opinion what is the best deployment strategy?

View 4 Replies

MVC :: Model To ModelView Optimization ?

Feb 11, 2010

i have two models that represent two related tables:

class Article
{
Guid ID;
Guid AuthorID;
string Title;[code]...

i need to show this view model in a view:

class ArticleWithAuthor
{
string ArticleTitle;[code]...

in a controller for Article i need to create a view model for the given article id. i read somewhere that a good way to create a view model is to write a mapper that translates from model to view model.

my question is:since the mapper needs a model to work with, it seems that i need two database requests: one to retrieve my Article model and the other one to get my Person data to merge them in the model view. this seems inefficient. is there a way to combine these requests and still follow this "Entity Translation Pattern"? i know of course that i can create my view model "manually" by writing a custom LINQ expression but i am trying to follow the MVC guidelines.

View 5 Replies

Html - Generate Static Web Pages From A Template As Part Of Web Application Build?

Oct 13, 2010

I'm building an HTML5 application (with ASP.NET back-end) and i want to develop it in such a way that i can run it locally with all my resources (such js and css) not minified (so i can debug it easily). However when i build the final version i want merge and minify the resources. At the same time i want to create several versions of the app targeting different platforms (iPhone, iPad, desktop, etc) by adding appropriate css.

I thought that the final output should be a set of html files (so the get cached nicely). I could use ASPX and just control the output by a query string parameter, but i don't really want to have the form tag on my page.

So the questions are:

What are the pros and cons of using static html pages generated from a template versus a dynamic ASPX page? (apart from being able to run on any web server)
If ASPX approach good enough then how can i get rid of the form tag that's required by ASP.NET?

UDPATE

Another factor in favor of static html pages is the fact that the files are served instantly, whereas ASPX may take awhile to load if the app has recycled.

The back-end is ASP.NET 2.0.

View 2 Replies

URL Rewriting For Better Search Engine Optimization?

Jul 21, 2010

I am working on ASP.NET website. I need to post a Question Paper based on following parameters.

University
Branch
Subject

At Present My URL is in the below mentioned format

//localhost/MYASP/Posted?PostId=**

My URL should be in the below mention format after URL Rewriting

//localhost/MYASP/Posted/University/Branch/Subject/TITLEOFThePost

let me know the process of finding my querystring after url rewriting

View 2 Replies

C# - Combine Javascript/CSS Into One File Or Two For Better Optimization?

Jan 24, 2011

I am currently working on an c# application that minimizes and combines javascript/css asynchronously in the background to load on to the page which completed. Once the combined minimized file(s) are created, they are saved on to disk and all subsequent requests to the page will load this file.

The reason for this is to assist with performance on the page. I have a concern though, what if the combined file is large, eg 200 kb. Would it be better to combine in to 2 files if this was the case and have 2 separate http requests? The file will be gzipped and cached.

View 3 Replies

ADO.NET :: Optimization In Creation Of Connection String?

Feb 3, 2011

I have an application using data from multiple stored procedures in a single database.The dataacess is disconnected one. Entire data is required during loadtime i.e. all calls made at load time. I want to know what is the most optimized way to do it. As the connection is required with only one database,is there a way to create it once and use it for the next times. I am aware of connection pooling but its anyways done by default. kindly suggest some way to optimize the load time. Also the result set from all the procedures cannot be clubbed so multiple stored procedure invoking is compulsory required.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved