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.

c# - Modelling Classes based off versioned XSD files -


i'm coding standard defined in xml. standard has provided me 2 xsd's must support. breaking changes in backwards compatibility. question general 1 in best practice implement these. went down path of using "xsd.exe" generate class files model xml in typed manner. brought me conclusion there not way version class files in c# other overriding methods not clean me since changes pretty significant in terms of properties ect.

  • so initial idea use standard xml parsing in each versioned processor , not worry typed models, write lot more code( , less clean code ) in process.

  • second idea version model , processor names xsd version ( tag in xml ) id have class named "equipment_1_0" , "equipment_1_1" , use factory return me proper type de-serialize seems hacky.

and final idea turn here because these seems issue many people have addressed before. insight or resources can point me in terms of best practices in situation?

thanks

i suggest using similar http://blogs.msdn.com/b/mcsuksoldev/archive/2010/02/04/dynamic-xml-reader-with-c-and-net-4-0.aspx


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 -