Click here to Skip to main content
15,901,035 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: update tables row with vbscript in asp Pin
Guffa11-Nov-07 19:51
Guffa11-Nov-07 19:51 
GeneralRe: update tables row with vbscript in asp Pin
idsanjeevjha11-Nov-07 20:55
idsanjeevjha11-Nov-07 20:55 
AnswerRe: update tables row with vbscript in asp Pin
Guffa11-Nov-07 21:17
Guffa11-Nov-07 21:17 
GeneralRe: update tables row with vbscript in asp Pin
idsanjeevjha11-Nov-07 22:09
idsanjeevjha11-Nov-07 22:09 
AnswerRe: update tables row with vbscript in asp Pin
Guffa12-Nov-07 1:57
Guffa12-Nov-07 1:57 
GeneralRe: update tables row with vbscript in asp Pin
idsanjeevjha12-Nov-07 15:55
idsanjeevjha12-Nov-07 15:55 
AnswerRe: update tables row with vbscript in asp Pin
Guffa12-Nov-07 22:11
Guffa12-Nov-07 22:11 
QuestionRe: update tables row with vbscript in asp [modified] Pin
idsanjeevjha12-Nov-07 22:56
idsanjeevjha12-Nov-07 22:56 
my problems is to update thats row which display after click on link so click on link it display its row detail and wants select a option from option list and modify its open_flg status so plz help in updation
[code]
<%@language=vbscript%>
<%option explicit%>
<%
If Request.Cookies("userid") = "" Then
Response.Redirect "login.asp"
Else
dim my_conn_stRing, conn,R,R1,R2, sql,Rcount,Rpage,page,i,vopenflg
dim stroutput,reply,repcount,stropt1,vtopid,detail
MY_CONN_STRING = "dsn=oracle;uid=starter;pwd=starter;"
Set Conn = server.createobject("ADODB.Connection")
Conn.open MY_CONN_STRING
set R = Server.CreateObject("ADODB.Recordset")
for each stropt1 in request.QueryString
vtopid = request.QueryString(stropt1)
R.open "Select top_id,top_sub,MSG,open_flg,launch_by,launch_dt from topmaster where top_id="&vtopid&"",conn, adOpenStatic, adLockOptimistic, adCmdText
%>

<title>Vioce Of Baraunians



 





<% if request.Form("submit") then
dim sqlstr
sqlstr = "update topmaster set open_flg = '"&trim(Request.Form("vopenflg"))&"' where top_id = " & vtopid
response.Write(vopenflg)
conn.execute sqlstr
R.close
response.redirect("moderator1.asp")
conn.close
set conn=nothing
end if
next
%>
TOPIC ID    TOPIC SUBJECT MESSAGE   POSTED BY POSTED DATE Permission
<%=R("top_id")%> <%Response.Write R("top_sub")%> <%=R("msg")%> <%=R("launch_by")%> <%=R("launch_dt")%> Apply

Normal
Absue
Close

topic id <%response.Write(vtopid)%>



Active user<%Response.write(Application("visitors"))%>

  



hello<%response.Write(vopenflg)%>

<%end if%>

function moderate()
{
window.location = "moderator1.asp"
}





[/code]


-- modified at 5:01 Tuesday 13th November, 2007

sanjeev

AnswerRe: update tables row with vbscript in asp Pin
Guffa13-Nov-07 12:46
Guffa13-Nov-07 12:46 
GeneralRe: update tables row with vbscript in asp Pin
idsanjeevjha13-Nov-07 16:56
idsanjeevjha13-Nov-07 16:56 
AnswerRe: update tables row with vbscript in asp Pin
Guffa14-Nov-07 3:05
Guffa14-Nov-07 3:05 
QuestionASP Email Script Not Working Pin
MelDrop9-Nov-07 5:06
MelDrop9-Nov-07 5:06 
Questionhow to break a table into two tables with javascript? Pin
andylaw8-Nov-07 22:47
andylaw8-Nov-07 22:47 
AnswerRe: how to break a table into two tables with javascript? Pin
Guffa9-Nov-07 12:38
Guffa9-Nov-07 12:38 
GeneralRe: how to break a table into two tables with javascript? Pin
andylaw9-Nov-07 15:41
andylaw9-Nov-07 15:41 
GeneralRe: how to break a table into two tables with javascript? Pin
Michael Sync10-Nov-07 23:10
Michael Sync10-Nov-07 23:10 
Questionproblem with registration of new website on IIS Pin
0x49D18-Nov-07 20:01
0x49D18-Nov-07 20:01 
AnswerRe: problem with registration of new website on IIS Pin
Michael Sync8-Nov-07 20:30
Michael Sync8-Nov-07 20:30 
GeneralRe: problem with registration of new website on IIS Pin
0x49D18-Nov-07 20:41
0x49D18-Nov-07 20:41 
AnswerRe: problem with registration of new website on IIS Pin
Vasudevan Deepak Kumar8-Nov-07 21:03
Vasudevan Deepak Kumar8-Nov-07 21:03 
GeneralRe: problem with registration of new website on IIS Pin
0x49D18-Nov-07 21:10
0x49D18-Nov-07 21:10 
QuestionContent Aware Image Resizing?? Pin
e36k2248-Nov-07 14:46
e36k2248-Nov-07 14:46 
AnswerRe: Content Aware Image Resizing?? Pin
Mark Churchill8-Nov-07 17:05
Mark Churchill8-Nov-07 17:05 
GeneralRe: Content Aware Image Resizing?? Pin
e36k2248-Nov-07 20:01
e36k2248-Nov-07 20:01 
GeneralRe: Content Aware Image Resizing?? Pin
Mark Churchill8-Nov-07 20:21
Mark Churchill8-Nov-07 20:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.