Hello Group ,

I have a problem ,,, of getting a value of one text field and use it in my code ,,
here is the scenario ,,,

I have 2 text box & button

one txt box named with case value and it's values are stored in a database under casevalues column name , and Result text box which i want to extract it's value and compare the value with values already stored in database under expected values column name ....
(note : i have many values to compare , then i need more than one run test ) that's why i've binded case values from data base to my web test and it's become as follow :
ctl00$ContentPlc1$Ctr_SEC_Login1$txtUserName={{Dat aSource1.Table1.CaseValue}}
and i extract the value from Result text box and it stored it in web test context under context parameter name "test".. then i wrote a web test plugs in to get expected value from a database and to compare it with result value ,, the problem is ,, how in my code i can be sure if the 1st Row in case value has this expected value and then i can compare it ,,
here is the code

Dim Dtable As New DataTable

Dtable = GetDataFromAccess(CType(e.WebTest.Context("caseval ue"), String))

If Not Dtable Is Nothing Then

If Not Dtable.Rows.Count > 0 Then

For i As Integer = 0 To Dtable.Rows.Count - 1

If Dtable.Rows(i)("ExpectedValue") = CType(e.WebTest.Context("test"), String)

mm, i mean how can i extract this value :
ctl00$ContentPlc1$Ctr_SEC_Login1$txtUserName={{Dat aSource1.Table1.CaseValue}}
and put it like this

Please i need help ...

Thanks in advance [img]/images/graemlins/smile.gif[/img]