A
Ankur Smith
Here is my code.
Dim dtrAct As OdbcDataReader 'Line #1
dtrAct = cmdAct.ExecuteReader() 'Line #2
If Not dtrAct.IsDBNull(dtrAct.GetOrdinal("ACCOUNTNO")) Then 'Line #3
txtActNo.Text = dtrAct("ACCOUNTNO").ToString() 'Line #4
Else
txtActNo.Text = "ErrorData" 'Line #5
End If
To improve the performce is there any way to improve the code in line #3?
Is there any other suggestions in the above statement.
I am using .Net Framework 1.1.
Thanks
Ankur
Dim dtrAct As OdbcDataReader 'Line #1
dtrAct = cmdAct.ExecuteReader() 'Line #2
If Not dtrAct.IsDBNull(dtrAct.GetOrdinal("ACCOUNTNO")) Then 'Line #3
txtActNo.Text = dtrAct("ACCOUNTNO").ToString() 'Line #4
Else
txtActNo.Text = "ErrorData" 'Line #5
End If
To improve the performce is there any way to improve the code in line #3?
Is there any other suggestions in the above statement.
I am using .Net Framework 1.1.
Thanks
Ankur