radio instead of dropdown

Results 1 to 2 of 2

Thread: radio instead of dropdown

  1. #1
    Join Date
    Dec 1969

    Default radio instead of dropdown

    The Article by Pete D.(:"Populating a Dropdown from an Application Variable") uses a dropdown menu <BR><BR>I would like to use radio buttons instead. How can I do this?

  2. #2
    Join Date
    Dec 1969

    Default Well, not at all advanced, but...

    Since that article *REALLY* needs a rewrite, what the heck!<BR><BR>The biggest thing wrong with the article is that it keeps changing the value of the Application variable, instead of building a temp string and then setting the value one time. Probably not a big deal in Global.ASA, but really ugly elsewhere.<BR><BR>Anyway... Do you not know what a radio button looks like in HTML??? The difference between it and an &#060;OPTION&#062; in a select list is really very minimal. What is it you didn&#039;t figure out???<BR><BR>Oh,<BR><BR>&#060;%<BR>temp = ""<BR>do until rs.eof <BR>&nbsp; &nbsp; temp = temp & "&#060;INPUT Type=&#039;Radio&#039; Name=&#039;RadioGroup1&#039; " _<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; & " Value=&#039;" & rs("theIDfield") & "&#039; &#062; " _<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; & rs("theDescription") & vbNewLine<BR>&nbsp; &nbsp; RS.MoveNext<BR>Loop<BR><BR>&#039;Do this if you want to...<BR>Application("RadioGroup") = temp<BR>%&#062;<BR><BR>Of course, you could also use GetString and do the whole thing faster and easier. See the ASPFAQs for the FAQ on GetString.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts