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

  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. 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. Andrew de la Harpe

    Clickable bar graphs

    Andrew de la Harpe, Nov 3, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    495
    Agiato
    Nov 3, 2003
  2. Amir

    DataGrid Clickable Columes

    Amir, Jan 18, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    1,906
  3. z. f.

    clickable validator

    z. f., Jul 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    396
    Curt_C [MVP]
    Jul 14, 2004
  4. Corno

    any clickable control

    Corno, Sep 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    414
    =?Utf-8?B?RmVybmFuZG8gSHVudGg=?=
    Sep 6, 2004
  5. Bart Schelkens

    Clickable image

    Bart Schelkens, Sep 9, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    676
    Sanjeeb Sarangi
    Sep 9, 2004
  6. DC Gringo
    Replies:
    0
    Views:
    446
    DC Gringo
    Oct 31, 2004
  7. John Tipper

    Creating clickable image control

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

    Menu control. Clickable area

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