This topic is locked

Radio Button - Formatting

7/8/2006 1:31:20 PM
ASPRunnerPro General questions
A
aglzz author

I need some help with the formatting of the Radio Buttons. The way i view this radio buttons is:

  • Radio 1
  • radio 2
  • radio 3
  • radio 4


I would like to see them listed HORIZONTAL and NOT vertical, how can I do this? When ever I edit tha ADD.ASP to remove the <BR> my asp stops functioning. Where do I edit the template?
What am I doing wrong? H E L P !!

J
Jane 7/10/2006

Hi,
open ..._aspfunctions.asp file, find BuildRadioControl(strName, strValue) function and remove all
tags in it:

...

if Trim(CStr(rsTemp(0)))=Trim(CStr(strValue)) then

Response.Write "<input type=radio name=""radio" & strName & """ checked onclick=""this.form['" & strName & "'].value = '" & Server.HTMLEncode(rsTemp(0)) & "';return true; "">" & Server.HTMLEncode(rsTemp(1))& "
"


else

Response.Write "<input type=radio name=""radio" & strName & """ onclick=""this.form['" & strName & "'].value = '" & Server.HTMLEncode(rsTemp(0)) & "';return true; "">" & Server.HTMLEncode(rsTemp(1))& "
"


end if

...

if Trim(CStr(arr(ind)))=Trim(CStr(strValue)) or bYes then

Response.Write "<input type=radio name=""radio" & strName & """ checked onclick=""this.form['" & strName & "'].value = '" & Server.HTMLEncode(arr(ind)) & "';return true; "">" & Server.HTMLEncode(arr(ind)) & "
"


else

Response.Write "<input type=radio name=""radio" & strName & """ onclick=""this.form['" & strName & "'].value = '" & Server.HTMLEncode(arr(ind)) & "';return true; "">" & Server.HTMLEncode(arr(ind)) & "
"


end if

...