Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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 10th, 2007, 12:10 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 update rows with vbscript in asp

can any body help me in updation of rows in asp with vbscript
<select name="vopenflg <%=R("top_id")%>">
        <%If IsEmpty(vopenflg) or vopenflg = 0 Then%>
          <option value=" " selected>Normal</option>
           <option value="0">Abuse</option>
          <option value="1">clsoe</option>
         <%Elseif vopenflg =1 Then%>
          <option value=" " >Normal</option>
          <option value="0" selected>Abuse</option>
          <option value="1">clsoe</option>
          <%Elseif vopenflg =2 Then%>
          <option value=" " >Normal</option>
          <option value="0" >Abuse</option>
          <option value="1" selected>clsoe</option>
          <%End If%>
      </select>
  <% R.close
  If Not IsEmpty(Request.Form("submit")) then
   vopenflg = Request.Form("vopenflg")
    vopenflg=trim(vopenflg)
     conn.close
    conn.Mode = adModeReadWrite
   conn.open
   R.open "select top_id,open_flg from topmaster ",conn, adOpenStatic, adLockOptimistic, adCmdText
   if request.QueryString("vopenflg"& R("top_id"))<>"" then
   R("open_flg")=vopenflg
   R.update
   R.Close
  conn.close
end if
end if
end if
%>


sanjeev
__________________
sanjeev
 
Old November 12th, 2007, 03:24 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please clarify your problem. You seem to have several problems in your code. What is happening?

Woody Z
http://www.learntoprogramnow.com
How to use a forum to help solve problems





Similar Threads
Thread Thread Starter Forum Replies Last Post
select option and update more rows in table . sanjeev jha Classic ASP Basics 3 November 6th, 2007 07:37 AM
modify and update multipale rows in database sanjeev jha ADO.NET 0 November 2nd, 2007 02:04 AM
Update records with multiple keys (ASP VBScript) rbrynest SQL Server ASP 4 April 27th, 2005 05:28 AM
Update records with multiple keys (ASP VBScript) rbrynest Dreamweaver (all versions) 1 April 27th, 2005 05:11 AM
Using VBScript to update content w/o page refresh ALoPresto Classic ASP Basics 2 July 11th, 2003 12:53 PM





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