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();