Results 1 to 3 of 3

Thread: Dynamically create buttons that call asp.net function

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2004
    Posts
    149

    Dynamically create buttons that call asp.net function

    Can anyone give me a clue about how to dynamically create buttons that will call a function in asp.net.

    The purpose is that I have this table of records and would like the user to be able to just click a button and have it do something. Whether it be email the user on the current record or delete the record.

    I have tried to asp asp buttons and html buttons and they both don't seem to do anything. I had the "mailto:[email protected]" in the button but it did not do anything.

    Any help would be appreciated.

    Thanks.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Dynamically create buttons that call asp.net function

    Does that mean a single button for each record? Or is it going to be a single button that does something depending upon the record retrieved from the database?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2004
    Posts
    149

    Re: Dynamically create buttons that call asp.net function

    a single button for each record.

    Would i have to force the page to postback with actions in the ispostback on page_load passing a variable in querystring with which I would then do some action?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width