You want access this property on client side ? Read from it?
So you must create new class with one property of string type and one
with DataTable type.
This class must be serializable. And then GetData must return object of
this class.
On client side you will be able to operate on this fields.
Or make this
[Serializable()]
public class GetSelectOptions
{
public GetSelectOptions()
{...}
private string m_Sql = "";
private DataTable m_DataTable = null;
public string Sql
{
get { return m_Sql; }
set { m_Sql = value; }
}
public DataTable DataTable
{
get { return m_DataTable; }
set {}
}
[AjaxPro.AjaxMethod()]
public GetSelectOptions GetData()
{
//fill m_dataTable
}
}
Best regards
AdaskoTheBeAsT
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---