Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 14th, 2004, 04:49 AM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default multiple dynamic checkboxes

There are multiple pages . On each page dynamic checkboxes. I check some checkboxes on first page i go to next page & check 2 more checkboxes . so when i return back to first page the checked checkboxes becomes unchecked. So how do i avoid this ? I need to write a loop to trap the checked checkboxes & pass it on to the page url so that when i come back to previous page the selected checkboxes should remain checked.

I am pasting the code of my checkbox below
<%
    Do While Not rs.Eof and Count < rs.PageSize
                  col1 = rs("ClientName")
  %>

<TR>
        <TD align=center bgcolor=white >&nbsp;<%=col1%>&nbsp;</td>

      <TD align=center bgcolor=white width=30%>
<TABLE cellSpacing=0 cellPadding=0 border=0 width=30%>
<TR>
    <TD width=60 bgColor=#ffffff align=left>
    <CENTER><input type=checkbox name="ap" value="y<%=rs("sitedetails")%>" > </input></CENTER></A></TD>

</TR>
</TABLE>
</td>
</tr>
<%
 rs.MoveNext
    Count = Count + 1
    Loop
%>
</table>

So if you see the checkbox has common name but different values i.e "Y" & record no (sitedetails).

Can anybody help? It's urgent





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract data from Dynamic Checkboxes? leothelion123 BOOK: Professional C#, 2nd and 3rd Editions 0 October 11th, 2006 04:35 AM
Dynamic Checkboxes using dynamic Select Values bsheridan Classic ASP Databases 0 March 12th, 2006 10:17 AM
Multiple Checkboxes With same name how to make t kcs_chandra ASP.NET 1.0 and 1.1 Basics 1 October 29th, 2004 09:03 AM
Multiple Checkboxes Error mgreenwood BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 May 27th, 2004 02:43 PM
Dynamic form checkboxes Claralu Classic ASP Databases 2 August 5th, 2003 12:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.