any clickable control

Discussion in 'ASP .Net Web Services' 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
    >
    >
    >
    Fernando Hunth, 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:
    379
    Agiato
    Nov 3, 2003
  2. Corno

    any clickable control

    Corno, Sep 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    313
    =?Utf-8?B?RmVybmFuZG8gSHVudGg=?=
    Sep 6, 2004
  3. DC Gringo
    Replies:
    0
    Views:
    358
    DC Gringo
    Oct 31, 2004
  4. John Tipper

    Creating clickable image control

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

    Menu control. Clickable area

    Jim Andersen, Aug 29, 2006, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    181
    Jim Andersen
    Aug 30, 2006
Loading...

Share This Page