I have a drop down list that displays all the titles from my table in the database. This works fine, however, i want it to display the title of whichever person the query has searched for.
For example, the list has all the titles in, i have clicked on my link which shows me the details for a person, and i want the value that is shown in the drop down list to be the title of the person the query has searched for, and then listing the list of titles again after this value.
How can I do this?
<asp:DropDownList ID="ddlTitle" runat="server" DataSourceID="obdsGetTitleForDropDown" DataTextField="Title" DataValueField="Title_RefNo" Width="100%"> </asp:DropDownList>