Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

dynamic checkbox

New Here ,
Dec 19, 2006 Dec 19, 2006
I have created an update page with a dynamic checkbox but it won't stay checked. This is the code:

<input type="checkbox" name="Online" value=1 <%If (CStr(rsNews.Fields.Item("Online").Value) = CStr("true")) Then Response.Write("checked=""checked""") : Response.Write("")%>>

Can anyone help me please?

Cheers
TOPICS
Server side applications
391
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 19, 2006 Dec 19, 2006
LEEDS UFC wrote:

> I have created an update page with a dynamic checkbox but it won't stay
> checked. This is the code:
>
> <input type="checkbox" name="Online" value=1 <%If
> (CStr(rsNews.Fields.Item("Online").Value) = CStr("true")) Then
> Response.Write("checked=""checked""") : Response.Write("")%>>
>
Then
Response.Write(" checked")%>>

Mick
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 19, 2006 Dec 19, 2006
Try using True instead of true.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004



Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 20, 2006 Dec 20, 2006
LATEST
Thank you guys. Both worked a treat. You're diamond gezzers!!!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines