R
rohith
Hope someone can help with this.
I am trying to add items to a drop down list from a
database. I can do this fine by using the bind method.
What I want to do also is to set the selected item to one
of those values. Using Asp 3.0 I could use the While
Wend loop to see if the value from the database equals
the variable and if so make this the selected item
While
If rs("x") = x Then
<option selected>rs("x")</option>
End If
Wend
Is there similar code in Asp.net
Thank you in advance.
I am trying to add items to a drop down list from a
database. I can do this fine by using the bind method.
What I want to do also is to set the selected item to one
of those values. Using Asp 3.0 I could use the While
Wend loop to see if the value from the database equals
the variable and if so make this the selected item
While
If rs("x") = x Then
<option selected>rs("x")</option>
End If
Wend
Is there similar code in Asp.net
Thank you in advance.