[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Drop down menu comparing two DB values, make non caps

Asked by amucinobluedot in Active Server Pages (ASP), JavaScript, Miscellaneous Web Development

I have a drop down menu which values come from a database table, it will display the value based on the value from another table. Problem is that it is case sensitive and I need it to be NOT case sensitive. Here is the code :

-------

<select name="POBCntry" class="bodytext" id="select4" onFocus="mark(this,'#C2D5EB','#000000')" onBlur="mark(this,'#FFFFFF','#000000')">
                    <option value="" <%=(("" == (ContactDetails.Fields.Item("PobCountry").Value))?"SELECTED":"")%>>Please select a Country</option>
                    <%
while (!WorldCountries.EOF) {
%>
                    <option value="<%=(WorldCountries.Fields.Item("country").Value)%>" <%=(((WorldCountries.Fields.Item("country").Value) == ((ContactDetails.Fields.Item("PobCountry").Value)))?"SELECTED":"")%> ><%=(WorldCountries.Fields.Item("country").Value)%></option>
                    <%
  WorldCountries.MoveNext();
}
if (WorldCountries.CursorType > 0) {
  if (!WorldCountries.BOF) WorldCountries.MoveFirst();
} else {
  WorldCountries.Requery();
}
%>
                  </select>

---

Worldcountries.country is the field that is being compared to  contactdetails.pob

I need to make those two not-case sensitive so that if for example worldcountries.country = Mexico and contact.details.pob = MEXiCo   it will still compare them and display the value of worldcountries.country, regardless of how the user entered the name in contactdetails.pob.

I appreciate the help, let me know if you need any more info.
I am using MS SQL 200, ASP/Javascript page.
[+][-]11/04/09 01:01 AM, ID: 25737520Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 07:59 AM, ID: 25740631Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/04/09 08:04 AM, ID: 25740683Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625