.NETGURU
Problems with "external" enumerations
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcontrolsvb' list.


Anders Vikstrom
Hi,

I have a custom web control that exposes two properties. Both are
enumerations. One work and one doesn't. The enumeration of the one =
that
works is declared in the same assembly as the control. The one that =
doesn't
work uses an enumeration declared in a system assembly. The main =
problems
are the following:

At design time: The drop down list in the property explorer displays =
neither
all nor the correct enum values.
At run time: ASP.NET complains that it is "unable to generate code for =
a
value of type".

Is it not possible to expose external enumerations, or do I have to do
something special to make it work?

Grateful for any enlightenment,

Anders Vikstr=F6m
SW Engineering, BANQIT AB
http://www.banqit.com
mailto:Click here to reveal e-mail address
Phone: +46 8 7594737

Reply to this message...
 
    
Anders Vikstrom
Sorry, I think I jumped to the wrong conclusion.

The problem was probably not that the enumeration was external. I now
believe that the reason it didn't work was that it had a Flags =
attribute.

/Anders

-----Original Message-----
From: Anders Vikstrom=20
Sent: den 13 maj 2002 17:39
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Problems with "external" enumerations

Hi,

I have a custom web control that exposes two properties. Both are
enumerations. One work and one doesn't. The enumeration of the one =
that
works is declared in the same assembly as the control. The one that =
doesn't
work uses an enumeration declared in a system assembly. The main =
problems
are the following:

At design time: The drop down list in the property explorer displays =
neither
all nor the correct enum values.
At run time: ASP.NET complains that it is "unable to generate code for =
a
value of type".

Is it not possible to expose external enumerations, or do I have to do
something special to make it work?

Grateful for any enlightenment,

Anders Vikstr=F6m
SW Engineering, BANQIT AB
http://www.banqit.com
mailto:Click here to reveal e-mail address
Phone: +46 8 7594737

| [aspngcontrolsvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification