Adding a second button if the first button is clicked

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Adding a second button if the first button is clicked

    Hi

    I build my form dynamically in Page_Load, with a button

    If the user clicks the button I want to create another button. I can do this but the button_click event doesn't seem t
    fire. I've been working on this for days, so any help would be greatly appreaciated

    Thank

    Dav

    UK
    Dave Prout Guest

  2. Similar Questions and Discussions

    1. Dynamically adding Dropdown, Text Box, Add Button and Remove Button
      Hi Everyone, I am facing a poblem in creating a row which contains following scenario in ASP.NET |DROP_DOWN_LIST | |TEXT_BOX| ...
    2. Prompt message when button is clicked in FDF Toolkit
      Hi all, Could somebody give help on my urgent question: One 'Submit a form' button on the PDF Template is used to submit form data to target...
    3. Which action button clicked?
      Can someone show me how to determine which button the user clicked? use CGI; $cgi->param did not contain the action parameter. I want to...
    4. identifying which radio button i clicked
      I move from one form to another when I click to a radio button. I can identify which radio button I clicked by trapping its value. but my problem...
    5. Which button column was clicked.
      If I have two button columns in a datagrid, can I determine in the SelectedIndexChanged routine, which column was clicked? Thanks in advance. ...
  3. #2

    Default Re: Adding a second button if the first button is clicked

    "Dave Prout" <anonymous@discussions.microsoft.com> wrote in message
    news:D2A84B4B-4C2E-4329-BA29-1F47F00428BF@microsoft.com...
    > Hi,
    >
    > I build my form dynamically in Page_Load, with a button.
    >
    > If the user clicks the button I want to create another button. I can do
    this but the button_click event doesn't seem to
    > fire. I've been working on this for days, so any help would be greatly
    appreaciated.

    Instead of creating the button when the first one is clicked, how about
    creating both buttons to start with, then setting the second one visible
    when the first is clicked.

    This avoids tricky issues with creating controls dynamically, primary among
    them the fact that you need to create the same controls, in the same order,
    both on the initial request, and on every postback.
    --
    John Saunders
    johnwsaundersiii at hotmail


    John Saunders Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139