Move the enum source to a separate file in App_Code i.e.,
class/struct/enum inside the Page are not supported.
Regards,
Michael
On 5/3/06, INeedADip <[EMAIL PROTECTED]> wrote:
>
> I have the following class:
>
> Public Class AjaxExportFunctions
>
> Public Enum ExportDataFrom
> Publication = 0
> List = 1
> Filter = 2
> End Enum
>
> <AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.ReadWrite)>
> _
> Public Sub NewExport()
> End Sub
>
> End Class
>
> -------------
>
> In the Page_Load of a page I have the following:
>
> AjaxPro.Utility.RegisterEnumForAjax(typeof(AjaxExportFunctions.ExportDataFrom));
>
> The resulting javascript is:
>
> <script type="text/javascript">
> addNamespace("AjaxExportFunctions+ExportDataFrom");
> AjaxExportFunctions+ExportDataFrom = {
> "Publication":0,
> "List":1,
> "Filter":2
> }
> </script>
>
> Which is illegal because of the '+' sign.
>
> ???????
>
>
> >
>
--
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
-~----------~----~----~----~------~----~------~--~---