picking up image buttons

Discussion in 'ASP General' started by Patrick, Dec 6, 2004.

  1. Patrick

    Patrick Guest

    I have an "image button" that appear like so (from View source from IE)
    <input alt="Delete Items" src="../UserMods/butt_deleteItems.gif"
    type="image" name="delete" value="Delete Incomplete Order" border="0">
    the form is posted using HTTP POST.

    <form METHOD="POST" name="restoreCart" action="custListCarts.asp">

    How could I pick up whether this button is clicked?

    I added the following debug code
    %>DELETE=[<%=Request.Form("delete")%>]<br>
    Restore=[<%=Request.Form("restore")%>]<br>
    Request.Form=[<%=Request.Form%>]<%

    Strangely, they produce this output:
    DELETE=[]
    Restore=[]
    Request.Form=[orderNumbers=4428&idCust=996&delete.x=39&delete.y=3]

    The delete.x and delete.y return different number each time it is clicked!
     
    Patrick, Dec 6, 2004
    #1
    1. Advertisements

  2. Patrick

    Evertjan. Guest

    Patrick wrote on 06 dec 2004 in microsoft.public.inetserver.asp.general:

    > I have an "image button" that appear like so (from View source from IE)
    > <input alt="Delete Items" src="../UserMods/butt_deleteItems.gif"
    > type="image" name="delete" value="Delete Incomplete Order" border="0">
    > the form is posted using HTTP POST.
    >
    > <form METHOD="POST" name="restoreCart" action="custListCarts.asp">
    >
    > How could I pick up whether this button is clicked?
    >
    > I added the following debug code
    > %>DELETE=[<%=Request.Form("delete")%>]<br>
    > Restore=[<%=Request.Form("restore")%>]<br>
    > Request.Form=[<%=Request.Form%>]<%
    >
    > Strangely, they produce this output:
    > DELETE=[]
    >


    <http://www.chami.com/tips/internet/042399I.html>

    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)
     
    Evertjan., Dec 6, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bruce Hodge

    ASP not picking up new page, very strange.

    Bruce Hodge, Jul 15, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    498
    Bruce Hodge
    Jul 16, 2003
  2. Roger
    Replies:
    1
    Views:
    811
    GreggTB
    May 20, 2005
  3. =?Utf-8?B?QmVu?=

    Image Buttons/Buttons not responding

    =?Utf-8?B?QmVu?=, Jul 6, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    590
    Teemu Keiski
    Jul 6, 2005
  4. Laszlo Zsolt Nagy
    Replies:
    1
    Views:
    1,810
    Kartic
    Jan 26, 2005
  5. Jeremy Jones

    Datagrid Nav buttons and numeric buttons

    Jeremy Jones, Mar 21, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    802
    Masudur
    Mar 22, 2007
  6. Jonathan N. Little
    Replies:
    3
    Views:
    681
    Andy Dingley
    Apr 2, 2007
  7. Dr. Leff
    Replies:
    3
    Views:
    531
    David Mark
    Oct 15, 2007
  8. Dr. Leff
    Replies:
    3
    Views:
    436
    David Mark
    Oct 15, 2007
Loading...