Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

javascript - Jsmin on folder with subfolders -


i running jsmin compress javascript files of asp.net web application postbuild event in csproj file this:

"jsmin.exe" "$(projectdir)script" "$(projectdir)script\minified.js"

this working fine when kept js files in root of script folder. starting become alot of files in folder, decided divide files subfolders. seems jsmin fetches js files in root folder, , cannot see has option include files in sub-folders. have solution situation this? seem me should pretty common thing do, why bit surprised not parameter jsmin.exe enabling sub-folders.

you should able use dos' for command that:

for /r "$(projectdir)scripts/debug" %s in (*.js) jsmin.exe %s > "$(projectdir)scripts/release/%~ns.min.js" 

that assumes scripts in (or in directories within) directory named ~/scripts/debug , minifies them ~/scripts/release .js replaced .min.js.

i've tested in cmd, not build event in vs. so, may need tweak syntax slightly.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -