any clickable control

Discussion in 'ASP .Net' started by Corno, Sep 5, 2004.

  1. Corno

    Corno Guest

    Hi all,

    Is there a webcontrol or an htmlcontrol available that does a postback on a
    onclick but is more generic that a button? For example I would like to be
    able to postback when I click on a div, or on a table cell.
    I found out that I cannot use the HTMLGenericControl as it does not have a
    'click' event.

    TIA,

    Corno
     
    Corno, Sep 5, 2004
    #1
    1. Advertising

  2. Try with an image

    <input type="image" src="..." />

    On the click event of the image call MySend

    <SCRIPT language="javascript">

    function MySend()

    {

    document.F.action="yourpage.asp"
    document.F.method="POST"
    document.F.submit()

    }



    </SCRIPT>



    On the


    "Corno" wrote:

    > Hi all,
    >
    > Is there a webcontrol or an htmlcontrol available that does a postback on a
    > onclick but is more generic that a button? For example I would like to be
    > able to postback when I click on a div, or on a table cell.
    > I found out that I cannot use the HTMLGenericControl as it does not have a
    > 'click' event.
    >
    > TIA,
    >
    > Corno
    >
    >
    >
     
    =?Utf-8?B?RmVybmFuZG8gSHVudGg=?=, Sep 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. Andrew de la Harpe

    Clickable bar graphs

    Andrew de la Harpe, Nov 3, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    390
    Agiato
    Nov 3, 2003
  2. DC Gringo
    Replies:
    0
    Views:
    367
    DC Gringo
    Oct 31, 2004
  3. John Tipper

    Creating clickable image control

    John Tipper, Nov 5, 2003, in forum: C++
    Replies:
    1
    Views:
    398
    Mike Wahler
    Nov 5, 2003
  4. Jim Andersen

    Menu control. Clickable area

    Jim Andersen, Aug 29, 2006, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    193
    Jim Andersen
    Aug 30, 2006
  5. Corno

    any clickable control

    Corno, Sep 5, 2004, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    117
    Fernando Hunth
    Sep 6, 2004
Loading...

Share This Page