Hi Michael,

I have the same problem that josh had. But i was not able to resolve
the issue the way josh did. Here's my problem. I am getting the
following error.

Microsoft JScript runtime error: 'Authoritylist' is undefined.

Please see the detail below.

I have default.aspx page. That page loads settings.ascx usercontrol.
Setting.ascx usercontrol loads Authoritylist.ascx (based on certain
condition).
I have the following line of code in the page load event of
Authoritylist.ascx usercontrol.

'SERVER SIDE

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
        AjaxPro.Utility.RegisterTypeForAjax(GetType(Authoritylist))
        HyperLink1.Attributes.Add("OnClick", "Javascript:getData(" +
dpName + ");")
    end sub

 <AjaxPro.AjaxMethod()> _
    Private Function GetDataGrid(ByVal tableName As String) As String
      'code goes here
    end function

'CLIENT SIDE JAVASCRIPT

<script language =javascript>
        function getData(obj){
                window.status='Please wait...';
                var tableName=obj.value;
                Authoritylist.GetDataGrid(tableName, data_callback);
//I AM GETTING ERROR HERE (Microsoft JScript runtime error:
'Authoritylist' is undefined)//
        }

        function data_callback(result)
        {
                alert('value');
                if(result.error != null) {
                        alert(result.error);
                }
                        try{
                                //Process request
                        } catch(e) {}
                window.status='Ok..Done';
        }

</script>


Any help on this would be greatly appreciated. By the way i am using
NET framework 1.1

Thanks
Murali Bala


--~--~---------~--~----~------------~-------~--~----~
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