All,

I have a contacts db where users can search etc etc for contacts, view
details, and notes etc all hunky dory..however what I would like is
this.

Currently when a user is viewing a contacts details(address etc) the
Session("CompanyID") object holds a reference to the databaseid, when
they then click on "Add notes" it opens up the new window to add notes
for that company. On this page is a drop down list of all other
companies so they can jump between companies to add new notes if they
wished. Well when they come from the last page to this, I'd like the
dropdownlist value to change to that of the companyid they've just come
from.

Now I can loop all values in the dropdown no problem, but when I find a
match in the value of the dropdown=Session("CompanyID") and set the
"Selected" proerpty to true, I get informed that 2 items cannot have the
selected value set, which is fair enough.

So how do I go about finding out the index value of that companyid? Do
you see what I mean, sorry I haven't explained myself too well here.

Wayne Lee
Evident Systems Ltd
www.evidentsystems.co.uk

This email has been scanned with Norton AntiVirus 2002

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to