Hi shoakat,
I had posted the answer to similar query from you a couple of months back. But did not know from you then, if you tried that or successfuly incorporated that method.
Take a look at that thread here -->
Html Read my second reply to that post. That holds the answer for this post.
sinapra,
He wants to maintain the same value being SELECTED on the list box after writing it to the database.
In this case the requested value should be used in place of constants there in the other post I referred here.
Eg:
Code:
SelVal=Request.Form("lstControl")
...
...
'HTML code should look like...
<select name="lstControl">
<Option value="whatever" <%if SelVal="whatever" then %> SELECTED <%End If%>>whatever</option>
<Option value="whatever xyz" <%if SelVal="whatever xyz" then %> SELECTED <%End If%>>whatever xyz</option>
...
</select>
Cheers!
_________________________
- Vijay G
Strive for Perfection