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# - WCF - Serializing derived classes where base class is base<T> containing fields that are of type <T> -


i have domain objects defined using following pattern...

public abstract class baseobject<idt> {     private idt id = default(idt);     private datetime dtcreatedon;      public idt id     {                 {             return id;         }         set         {             id = value;         }     }      public datetime createdon     {                 {             return this.dtcreatedon;         }         set         {             this.dtcreatedon = value;         }     } }  public class derivedobject : baseobject<int> {     private  string sfield1;       public string field1     {                 {             return this.sfield1;         }         set         {             this.sfield1 = value;         }     }  } 

these domain objects live in .net 2.0 assembly. have .net 4.0 based wcf service needs utilize derived objects in wcf service methods.

the problem base class id field not getting serialized. instance method call

public derivedobject getbyid(int id)     {         //...     } 

returns appropriate derivedobject not have id field.

i have access .net 2.0 code produced domain objects code utilized several other web projects i'd rather not modify unless have to.

anything can in wcf service make sure id field gets serialized? or possible?

thanks -


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 -