1
Answer

Select Data from Datable with condition

Aniket Samanta

Aniket Samanta

10y
818
1
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)