ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 14th, 2003, 12:57 AM
jitender jitender is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Faridabad
Posts: 1 jitender User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to jitender
to update value of check box into a database

i am getting a prob. in database id is a autonumber .i want to update value after retriving the va,lue from database .that is going on i mean retriving valuue from database but not update.

below is code

<%@ Language=VBScript %>
<%Response.Buffer= true%>
<!--#include file="connect.inc" -->
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
dim icounter,ci
set rs =server.CreateObject("adodb.recordset")
rs.Open "select title,status from newsletter1 ",conn
conn.execute "update newsletter1 set status='" & Request.Form("c1") & "' where id=" & Request.QueryString("value") & " "
%>
<form method="post" action="news1.asp?value">
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="1">
<TBODY>
<TR>
<TD width="15%"><B>S No</B></TD>
<TD width="35%"><B>Title</B></TD>
<TD width="45%"><B>Select</B></TD></TR>
<%
iCounter =0
While Not rs.eof
iCounter = iCounter+1
%>
<TR>
<TD valign="top" width="15%"><%=iCounter %></TD>
<TD valign="top" width="15%"><%=rs("title")%></TD>
<TD valign="top" width="15%">
<input type="checkbox" name="C1" value="ON" checked></TD>
</TR>
<%
rs.movenext
Wend
%>
<P>&nbsp;</P>
<INPUT id=submit1 name=submit1 type=submit value=Submit>
</form>
</BODY>
</HTML>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > to update value of check box into a database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway