Custom control Property error.....
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I extended a textbox control and created a property i.e public enum myVarEnum {Apple,Mango,Peach}; protected myVarEnum myvar1; public myVar MyProperty { get { return myvar1; } set { myvar1 = value; } } Now when i use this extended control i am getting the property as a dropdown and i am able to select, the problem is the value i select doesnot persist..for example if i select "Mango" it goes back to the first one "Apple" after i build the solution. i guess its a small mistake plz help me overcome this... Regards Deepak.S