Hi,

you can use any enum that is available public in \bin folder or
App_Code. On the client-side you can register the enum to JavaScript
proxies, then you are able to use code like this in JavaScript, too:

<script type="text/javascript">

function callback(res) {
    if(res.value == Namespace.MyEnum.ValueA) {
        alert("Enum value is ValueA!");
    }
}

</script>


Regards,
Michael




On 5/15/06, epeleg <[EMAIL PROTECTED]> wrote:
>
> and what if the enum is part of a BLL or DAL project ?
>
> also it would be nice if we could get two-way support on the client
> side.
> i.e. to be able to get the Name of the enum entry from its value.
>
> Eyal
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to