Thanks Albert for your reply,
Now I get the dataview length, but how to get every column value in every row?
neither of the 2 lines in the for loop work
for (var i = 0; i < states.Rows.length;
++i)
{
alert(states.Rows[i].Columns[0]);
stateList.options[stateList.options.length] = new
Option(states[i].strProvinceState, states[i].strProvinceState)
}
Thanks again
Hanna Takla
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Behalf Of Albert Weinert
Sent: Monday, June 26, 2006 3:29 PM
To: [email protected]
Subject: [ajaxpro] Re: Data is not being returned.
Hanna Takla schrieb:
> alert("This is the datatable length: "+ states.length);
No, it's not :)
states.Rows.length is the count of Rows in an DataTable/DataView
> When I try to get the dataview length in an alert, I get "Undefined"
Yes. Use states.Rows
I little look with the Debugger can help so much!
--
Freundliche Grüße
Albert Weinert
http://der-albert.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---