When I add the line:
AjaxPro.Utility.RegisterEnumForAjax(GetType(Services.ControlPanel.ServiceID))
to my Page_Load event, Ajax.Net produces the following Javascript code:
<script type="text/javascript">
if(typeof Services == "undefined") Services={};
Services.ControlPanel+ServiceID = {
"Introduce":1,
"Folderize":2,
"AutoMatch":3,
"AutoLocate":4,
"MCR":5,
"Release":6,
"Assign":7
}
</script>
I get a syntax error on the line:
Services.ControlPanel+ServiceID = {
Can anyone tell me what I might be doing wrong? My server side enum is
defined as:
Public Enum ServiceID
Introduce = 1
Folderize = 2
AutoMatch = 3
AutoLocate = 4
MCR = 5
Release = 6
Assign = 7
End Enum
Thanks.
--~--~---------~--~----~------------~-------~--~----~
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/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---