Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 July 11th, 2006, 09:34 AM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to webdeem Send a message via Yahoo to webdeem
Default Dynamic Updation of Checkboxex in ASP

Hi,

I am in deep trouble, I have to update some checkbox fields dynamically in the way that if one check box is checked and i uncheck it and press submit then after processing it should be shown unchecked.
I tried so many approaches but failed. Please help me. Here is my code which I am using to update checkbox fields.

dim password, arrgroup, supsql1, supsql2, supsql3, supsql4, suprs1, suprs2, suprs3, suprs4, i, maxpri, chksql, chksql2, chkrs, chkrs2

password = request.form("password")
arrgroup = Split(Request.Form("group"), ",") 'this is checkbox field

supsql4 = "select a.GROUP_NAME, b.P_NO, a.GROUP_ID, b.STATUS "&_
"From groups a, priv_leges b "&_
"where a.group_id = b.group_id(+) "&_
"And b.P_NO(+) = '"&session("edit_pno")&"'"&_
"Order By a.Group_id"

set suprs4 = cnn.Execute(supsql4)

    For i = 0 to Ubound(arrgroup)

    if cint(arrgroup(i)) <> cint(suprs4("group_id")) and suprs4("status") = "" then

'------- code for updation goes here -------

    elseif cint(arrgroup(i)) = cint(suprs4("group_id")) and suprs4("status") = "y" then

'------- code for updation goes here -------

end if

Next






Similar Threads
Thread Thread Starter Forum Replies Last Post
help in updation sanjeev jha Classic ASP Basics 0 November 12th, 2007 04:17 AM
on batch updation using asp.net kalpeshsoneji Access VBA 0 August 25th, 2005 12:52 PM
Problem in updation abhit_kumar JSP Basics 3 November 30th, 2004 09:47 AM
updation problem abhit_kumar Java Databases 0 November 25th, 2004 01:45 AM
updation problem abhit_kumar Pro JSP 0 November 25th, 2004 01:44 AM





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