Re: Dynamic drop down list problem

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Patrice (nobody_at_nowhere.com)
Date: 10/13/04


Date: Wed, 13 Oct 2004 12:36:02 +0200

Ok this is exactly what the code means. You could use "Eval" to evaluate the
expression.
THAT SAID, I would avoid using "dynamically named" variables which is bad
IMO.

If you still want something similar you could use an array instead with one
dimension for the language and the other for the string id.

See :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vbsVariables.asp
at the bottom of the page.

Patrice

-- 
"Jochen" <jochen.scheire@pandora.be> a écrit dans le message de
news:HVVad.276874$3e6.14202949@phobos.telenet-ops.be...
> Indeed, that's what I experience
>
> "Patrice" <nobody@nowhere.com> wrote in message
> news:Of8M%23PIsEHA.3464@TK2MSFTNGP14.phx.gbl...
> > 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
> >
> > -- 
> >
> > "Jochen" <jochen.scheire@pandora.be> a écrit dans le message de
> > news:zuUad.276785$Wq.14260252@phobos.telenet-ops.be...
> >> 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>
> >> ----------------------------------------
> >>
> >> What did I do wrong?
> >>
> >>
> >
> >
>
>


Relevant Pages

  • Re: personal productivity metrics (was Re: Female Java Programmers...)
    ... We had a standard query response skeleton that just needed filling with appropriate DB access statements and display formatting statements: the rest of the system was menu-driven and had already collected the data retrieval keys. ... Another factoid that's always fascinated me is that, while programmers vary widely in the number of lines of clean compiled and unit tested code they can write a day, the number of lines any individual can produce a day is almost independent of the programming language used. ... martin@ | Martin Gregorie ...
    (comp.lang.java.programmer)
  • Re: Updated HTML widget by Stephen Uehler?
    ... widget ... I see two thoughts in this thread: "do we need a modern html rending ... What text markup language seems most natural and flexible when writing ... Clean its display a bit. ...
    (comp.lang.tcl)
  • Re: ASP vs ASP.NET development time
    ... In any language or development platform, ... >> Now, in order to compare speed of development, you have to know both ASP ... If you only know ASP, you have a learning curve, so your first ... >>> I hear all the time that ASP.NET improves development time by 20%. ...
    (microsoft.public.dotnet.framework.aspnet)
  • What is XML for Motif resource files + xnllanguage?
    ... I have used resource files and xnlLanguage to control the language ... application would be able to display the content in that language. ... Regarding XML I have found info about i18n in several places including ...
    (comp.text.xml)
  • Re: Hindi Numerals in Power Point 2000
    ... Do you want the entire presentation to display Right to Left? ... This is initially controlled by the language it is created with (If the ... >I have the Multilanguage support in XP enabled and the numbered are>displayed> in Hindi shapes in Word but when I import the text into Power Point, ...
    (microsoft.public.powerpoint)