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 November 12th, 2007, 04:17 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 help in updation

hi i am change my logic like this link with another page top_id and topicsubject on click topic subject its detail is display on next page called update1.asp i wants to upadta the displyed details column open_flg status plz this is my code for display and update this is display link wise detail but not update so help in updation
<%option explicit%>
If Request.Cookies("userid") = "" Then
  Response.Redirect "login.asp"
dim my_conn_stRing, conn,R,R1,R2, sql,Rcount,Rpage,page,i,vopenflg
dim stroutput,reply,repcount,stropt1,vtopid
MY_CONN_STRING = "dsn=oracle;uid=starter;pwd=starter;" 
Set Conn = server.createobject("ADODB.Connection")
set R = Server.CreateObject("ADODB.Recordset")
for each stropt1 in request.QueryString
R.open "Select top_id,top_sub,MSG,open_flg,launch_by,launch_dt from topmaster where top_id="&vtopid&" order by top_id desc ",conn, adOpenStatic, adLockOptimistic, adCmdText
<head><TITLE>Vioce Of Baraunians</TITLE></head>
<body bgcolor="#FFFFFF" background="back.gif">
<form name="update" action="update1.asp" method="post">
<meta http-equiv="Content-Type" content="text/html; charet=iso-8859-1">
<div style="position:absolute; top:100; left:0 ">
<table width="1000" border="0" cellspacing="1" cellpadding="3" bgcolor="#663333" >
<tr bgcolor="#CCCCFF"> 
  <td width="8%" ><b>TOPIC ID</b></td>
  <td bgcolor="#CCCCFF" colspan="50%">&nbsp;&nbsp; <b>TOPIC SUBJECT</b></td>
  <td bgcolor="#CCCCFF" colspan="50%"><b>MESSAGE</b></td>
  <td bgcolor="#CCCCFF" width="12%">&nbsp;&nbsp;<b>POSTED BY</b></td>
  <td bgcolor="#CCCCFF" width="12%"><b>POSTED DATE</b></td>
  <td bgcolor="#CCCCFF"><b>Permission</b></td>
  <tr bgcolor="#FFFFFF"> 
    <td bgcolor="#66FF99" width="8%"><%=R("top_id")%></td>
    <td align="left" colspan="50%" bgcolor="#66FF99"><b><%Response.Write R("top_sub")%></b></td>
    <td bgcolor="#66FF99" COLSPAN="50%"><%=R("msg")%></td>
    <td bgcolor="#66FF99" width="12%"><%=R("launch_by")%></td>
    <td bgcolor="#66FF99" width="12%"><%=R("launch_dt")%></td>
    <td width="10%"><b>Apply</b>
         <select name="vopenflg">
          <option value=" " >Normal</option>
          <option value="0" >Abuse</option>
          <option value="1">clsoe</option>
<table width="1000" border="0" cellspacing="1" cellpadding="3" >
<tr align="right" bgcolor="#99FFFF"> 
  <td><b>Voice of Baraunians views</b></td><td><%Response.write(Application("visitors"))%></td>
  If Not IsEmpty(Request.Form("submit")) then
   vopenflg = Request.Form("vopenflg")
end if
end if
  <table width=765>
  <tr><td width="60%"></td>
    <td><input type= "submit" name="submit" value="Apply">
   <input type="button" name="submit" value="Back" onclick="moderate()">
     <input type ="button" value="EXIT" onClick="window.close()"></td>
<script language="Javascript">
function moderate()
  window.location = "moderator1.asp"

Similar Threads
Thread Thread Starter Forum Replies Last Post
photograph updation k.manisha .NET Framework 1.x 0 November 9th, 2006 01:56 AM
Problem in Updation. rupen Classic ASP Basics 5 June 27th, 2005 07:17 PM
updation prob.......... abhit_kumar JSP Basics 0 December 14th, 2004 08:07 AM
updation prob.......... abhit_kumar MySQL 0 December 14th, 2004 08:06 AM

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