Re: adding delete confirmation
From: CJM (cjmnews04_at_newsgroups.nospam)
Date: 07/06/04
- Next message: CJM: "Re: multiple buttons on a form"
- Previous message: nbaxley: "IE's default for Save As Type incorrect"
- In reply to: Mike Brearley: "adding delete confirmation"
- Next in thread: Steven Burn: "Re: adding delete confirmation"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 6 Jul 2004 15:38:30 +0100
You can either do something in Javascript (in which post a question in
microsoft.public.scripting.jscript) or you can use ASP to post to another
form where the question can be asked.
By the looks of it, you are looking at a Javascript solution..
Chris
"Mike Brearley" <mike_brearleyDONTDOIT@NOSPAMhotmail.com> wrote in message
news:OjJRMV2YEHA.2868@TK2MSFTNGP09.phx.gbl...
> How would I add a delete confirmation popup box for the following?
>
> Here's what I have... A table (not a form) that contains this line:
>
> <td align="center"><a
>
href="delete.asp?username=<%=rsUsers("username")%>&startletter=<%=startlette
> r%>">Delete user</a></td>
>
> And delete.asp looks like this...
>
> ----------------------------------------------
> <%
> Option Explicit
> Dim username,rsDelete,startletter
>
> startletter = Request.QueryString("startletter")
>
> if Session("fewmetadminlogin") = "True" then
>
> username = Request.QueryString("username")
> %>
> <!--#include file="../includes/conn.asp"-->
> <%
> set rsDelete = conn.Execute("DELETE * FROM users WHERE username = '" &
> username & "'")
>
> conn.close
> set conn = nothing
> end if
>
> Response.Redirect("default.asp?startletter=" & startletter)
> %>
>
> ---------------------------------------------
>
> --
> Posted 'as is'. If there are any spelling and/or grammar mistakes, they
> were a direct result of my fingers and brain not being synchronized or my
> lack of caffeine.
>
> Mike Brearley
>
>
- Next message: CJM: "Re: multiple buttons on a form"
- Previous message: nbaxley: "IE's default for Save As Type incorrect"
- In reply to: Mike Brearley: "adding delete confirmation"
- Next in thread: Steven Burn: "Re: adding delete confirmation"
- Messages sorted by: [ date ] [ thread ]