Jump to content

Recommended Posts

Posted

V b lo  ila undi 

 

Const sql As String = "Select * from google" 

 

Dim table As DataTable

Dim newRow As DataRow

 

table = Me.D ataAction.GetDataTable(sql)

 

 

C # lo  

DataAction ki equivalent enti  ?  

 

nenu ee paina code ni C # lo rayali 

 

please help.

 

Posted

  user any vb to c# converters bro

 

  const string sql = "Select * from google";

    DataTable table = default(DataTable);

    DataRow newRow = default(DataRow);

    table = this.DataAction.GetDataTable(sql);

Posted

  user any vb to c# converters bro

 

  const string sql = "Select * from google";

    DataTable table = default(DataTable);

    DataRow newRow = default(DataRow);

    table = this.DataAction.GetDataTable(sql);

 

I did bro  error vashtundi  for Da taAction  

 

''  does not contain a definition for 'DataAction' and no extension method

Posted

I did bro  error vashtundi  for Da taAction  

 

''  does not contain a definition for 'DataAction' and no extension method

 

c# lo a method ledu anukunta .  Create new datatable and use datadpater to fill it 

Posted

I did bro  error vashtundi  for Da taAction  

 

''  does not contain a definition for 'DataAction' and no extension method

 

 

c# lo a method ledu anukunta .  Create new datatable and use datadpater to fill it 

yes..method undadhu.. use data adapter and use Fill method.  this example suits your reqmt http://stackoverflow.com/questions/6073382/read-sql-table-into-c-sharp-datatable

once you get datatable.. do foreach DataRow and read columns

×
×
  • Create New...