Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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 November 2nd, 2007, 02:04 AM
Authorized User
 
Join Date: Nov 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sanjeev jha
Default modify and update multipale rows in database

modify and update record in oracle database if multiple rows select through form and submit one record is updated with r.update but i wants to update more than one rows modify and update so plz help me
i am using code:(Asp)
        <td width="10%"><b>Apply</b>
         <select name="vopenflg">
        <%If IsEmpty(vopenflg) or vopenflg = 0 Then%>
          <option value="0" selected>No</option>
          <option value="1">Yes</option>
          <option value="2">clsoe</option>
         <%Elseif vopenflg =1 Then%>
          <option value="0">No</option>
          <option value="1" selected>Yes</option>
          <option value="2">Close</option>
         <%Elseif vopenflg =2 Then%>
          <option value="0">No</option>
          <option value="1">Yes</option>
          <option value="2" selected>Close</option>
          <%End If%>
      </select>
 <%
  If Not IsEmpty(Request.Form("submit")) then
  vopenflg = Request.Form("vopenflg")
  vopenflg=trim(vopenflg)
  conn.close
  conn.Mode = adModeReadWrite
  conn.open
  R1.open "Select open_flg from topmaster ", conn, adOpenStatic, adLockOptimistic, adCmdText
  R1("open_flg")= vopenflg
  R1.update
  R1.Close
  end if
%>

sanjeev
__________________
sanjeev





Similar Threads
Thread Thread Starter Forum Replies Last Post
update rows with vbscript in asp sanjeev jha Classic ASP Professional 1 November 12th, 2007 03:24 AM
select option and update more rows in table . sanjeev jha Classic ASP Basics 3 November 6th, 2007 07:37 AM
modify multipale rows in database sanjeev jha Classic ASP Basics 0 November 3rd, 2007 02:08 AM
update mulitple rows in SQL 2K danastasio Classic ASP Databases 2 January 16th, 2007 12:14 PM
How can I update 2 rows in one column in SQL table babou Classic ASP Databases 6 March 9th, 2005 11:13 AM





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