Dynamic drop down list problem

J

Jochen

Hello,

I have an asp application which I made "Multilanguage". I made an asp file
for every language with all the strings to be used stored like this:

Langstring1 = "French"
Langstring20 = "VTest"

In the beginning of an asp file I determine which language file to include.
In my database there are only numbers. I can now display the right text in
the right language using respons.write: Response.write(Langstring20)

Now I want to use a dropdown box displaying a text as selected based on a
relation between the number in my database and my language files. When I
have number 20 in a database, the value of the option should be 20 and the
text displayed should be 'VTest' for this is Langstring20. Problem is that
the option value seems to be correct with what I do, but the text displayed
in the box is not correct. How can I solve this?

What I did was the following:

------------------------------------------------
Langstring = "Langstring"

<select name="Testbox">
<option value="<%=RSItems("Testfile")%>"
selected><%=response.write(Langstring&RSItems("Testfile"))%>
<option value="20">VTest
<option value="21">TTest
<option value="22">FTest
</select>
 
P

Patrice

Looks like you try to use "dynamic" variables ???

Response.Write(langstring&rsitems("TestFile")) will write what is in the
langstring variable followed but what is in the rstitems("testfile"). Is
this what you experience ?

Patrice
 
J

Jochen

Indeed, that's what I experience

Patrice said:
Looks like you try to use "dynamic" variables ???

Response.Write(langstring&rsitems("TestFile")) will write what is in the
langstring variable followed but what is in the rstitems("testfile"). Is
this what you experience ?

Patrice
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top