Aniket Samanta

Aniket Samanta

  • NA
  • 82
  • 2.6k

Select Data from Datable with condition

Nov 28 2013 6:57 AM
I have data in datatable Like below .

............................
Link        |      Value
............................
 E1    |Monitorlog  
 E2    | Dashboard

 E3    |Tester
 
now i want to assign value in a String on runtime

Like 

String E1  = Monitorlog when link = =  E1

please suggest me different approach.Is  any  other.  
I have already implemented like below 

if (configTable.Rows[i]["Link"].ToString().ToUpper() == "MONITORLOG")
 _urlMonitor = configTable.Rows[i]["Value"].ToString();

Answers (1)