Clientside Binding with WebService without LINQ - any example ?

2 replies. Last post: March 14, 2010 11:34 PM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello,

I'd like to use datatable from my dataset as datasource to loading WebGrid via WebService in clientside bind mode. I don't want to use LINQ.

I've tried (but without result)

[ScriptMethod]
[WebMethod()]
public ISDataTable GetJSONHAState()
{
  DataSet1.WSS_HA_STATEDataTable dt = new DataSet1.WSS_HA_STATEDataTable();
  DataSet1TableAdapters.WSS_HA_STATETableAdapter da = new DataSet1TableAdapters.WSS_HA_STATETableAdapter();

da.Fill(dt, 0);

r
eturn DataTableConverter.ConvertFrom(dt); }

Could you give me some example ?

regard

Andrzej

All times are GMT -5. The time now is 5:47 PM.
Previous Next