Hi Michael,

I have the same problem. Below is my 2 javascript funtions 

                        function LoadStates(countries)
                                {
                                        var strCountry = 
countries.options[countries.selectedIndex].value;
                                        //var strCountry = 
document.getElementById("ddlAjaxCountries").options[ddlAjaxCountries.selectedIndex].title;
                                        alert(strCountry);
                                        
AjaxPro2.WebForm1.getAjaxState(strCountry, getAjaxState_CallBack);
                                }
                        function getAjaxState_CallBack(res)
                                {
                                        if (res.error != null)
                                        {
                                                alert(res.error);
                                                return;
                                        }
                                        var states = res.value;
                                        alert("This is the datatable: " + 
states);
                                        if (states == null || typeof(states) != 
"object")
                                        {
                                                alert("No data");
                                                return;
                                        }
                                        var stateList = 
document.getElementById("ddlAjaxStates");
                                        alert("GotIt");
                                        stateList.options.length = 0;
                                        alert("This is the datatable length: "+ 
states.length);
                                        for (var i = 0; i < states.length; ++i)
                                        {
                                                
alert(states[i].strProvinceState);
                                                
stateList.options[stateList.options.length] = new 
Option(states[i].strProvinceState, states[i].strProvinceState)
                                        }
                                        alert("Done");
                                }
When I try to get the dataview length in an alert, I get "Undefined"

Thanks

Hanna Takla

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Behalf Of [EMAIL PROTECTED]
Sent: Monday, June 26, 2006 2:56 PM
To: Ajax.NET Professional
Subject: [ajaxpro] Re: Data is not being returned.



I do not get any errors and I know that I am hitting the database
because I had my stored procedure write the record count to a dummy
table. I am just not getting the data back to the screen. It is as if
the data does not find its way back.
Michael Schwarz wrote:
> Hi,
>
> please, have a look on this thread:
>
> http://groups.google.com/group/ajaxpro/browse_thread/thread/57a261813d480a86/5aec036146486d76?q=please+help&rnum=3#5aec036146486d76
>
>
> - Do you get any error?
> - What do you see with Fiddler?
> - Is the DataSet null on the server-side method if you debug your code?
>
> Regards,
> Michael
>
>
>
>
> On 6/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Does anyone know why I am able to retieve data from SQL server 2000 on
> > my development machine but I am unable to retieve the data on server
> > 2003 iis6 and in some cases other iis5 machines.
> >
> >
> > >
> >
>
>
> --
> 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