mysql - How can I set current user as default value in the drop down list ASP.Net and VB.Net application -
in asp.net , vb.net web application form ; drop down list main contact holds list of names. list different different user logged in application. data populated select query database fields. (select query fetches data innerjoining 2 tables- employeruser table & user table. primary key of user table id foreign key in employeruser table named userid.) in front end asp.net coding is <div class="form-element"> <label> main contact (required) </label> <asp:dropdownlist id="commaincontact" runat="server" cssclass="chosen" enableviewstate="true" datatextfield="name" datavaluefield="id" /> </div> in end vb.net coding drop down list is commaincontact.datasource = localhelper.cachedemployeruserlist(localhelper.useremployerid) ...