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. Advertising

  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. Advertising

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. Roger
    Replies:
    1
    Views:
    648
    GreggTB
    May 20, 2005
  2. =?Utf-8?B?QmVu?=

    Image Buttons/Buttons not responding

    =?Utf-8?B?QmVu?=, Jul 6, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    460
    Teemu Keiski
    Jul 6, 2005
  3. Jeremy Jones

    Datagrid Nav buttons and numeric buttons

    Jeremy Jones, Mar 21, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    633
    Masudur
    Mar 22, 2007
  4. Jonathan N. Little
    Replies:
    3
    Views:
    536
    Andy Dingley
    Apr 2, 2007
  5. Dr. Leff
    Replies:
    3
    Views:
    312
    David Mark
    Oct 15, 2007
Loading...

Share This Page