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.

asp.net - IIS7 Application Configuration -


i have custom asp.net application utilize several clients host. each client has separate domain , application child application under root domain (http://domain.com/customapp). application files same (aspx, ascx, style sheets, images, etc.). thing different web.config file each client. development of application continues evolve, have update application each directory , becoming tedious. trying come method keep application date. first though placing application single physical path , creating multiple applications pointing path (the problem method can't have different web.config files). curious solution others using in scenario...

if want handle entirely in visual studio, vs2010 offers web.config transforms solve problem.

in nutshell, create build configuration (in vs, select build|configuration manager...) each site. add web.config transform each client, specifies differences required each application.

i use differentiating between development, staging , release configurations - each transform adjusts connection string, app settings, etc - , works quite both within visual studio , when deploying via msbuild.

also, note web.config settings inherited iis applications. so, if have root site

/root 

and client apps

/root/client1 /root/client2 ... 

you place client-specific config settings in web.config in each client-specific folder, , global settings web.config in root folder.


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 -