Albert Weinert , I test your code,

var dt = ds.Tables[0];
alert(dt.Columns[0].Name);

this works OK,

but following doesn't work.

var dt = ds.Tables[0];
alert(dt.Rows[0][dt.Columns[0].Name]);

----------------------------------------------------------------
all my code :
                        function WriteReport_CallBack(response)
                        {
                                var ds = response.value;
                                //if the response wasn't what we expected
                                if (ds == null || typeof(ds) != "object" && 
ds.Tables == null)
                                {
                                        alert('null');
                                        return;
                                }
                                var dt = ds.Tables[0];
                                //alert(dt.Columns[0].Name);
                                alert(dt.Rows[0][dt.Columns[0].Name]);
                                //alert(oSheet.Name);
                                //alert(ds.Tables[0].Name);
                                //alert(ds.Tables[0].Columns[0].Name);
                                //alert(ds.Tables[0].Columns[0].Item[0]);
                                //alert(ds.Tables[0].Columns[0].FieldName);
                                //alert(ds.Tables[0].Columns[0].ColumnName);
                                
//alert(ds.Tables[0].Rows[0][ds.Tables[0].Columns[0]]);
                        }


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