Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. run time event create

run time event create

Scheduled Pinned Locked Moved ASP.NET
help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bhim Prakash Singh
    wrote on last edited by
    #1

    i have face a problem for creating run time event. i have a button on page. when i have click on button , i create another button in page in run time. i want , when i click on new button so display an message on screen. i hope , my friends , you have a solution

    P G 2 Replies Last reply
    0
    • B Bhim Prakash Singh

      i have face a problem for creating run time event. i have a button on page. when i have click on button , i create another button in page in run time. i want , when i click on new button so display an message on screen. i hope , my friends , you have a solution

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      It would be best to use JavaScript here, whereby you can create elements dynamically at runtime using the document.createElement() function. Take a look at this article which may be of use. Regards, --Perspx

      Don't trust a computer you can't throw out a window

      -- Steve Wozniak

      1 Reply Last reply
      0
      • B Bhim Prakash Singh

        i have face a problem for creating run time event. i have a button on page. when i have click on button , i create another button in page in run time. i want , when i click on new button so display an message on screen. i hope , my friends , you have a solution

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        If you create controls dynamically, you have to recreate them on every postback. If you create the second button in the click event of the first button, it will only be created on the first postback. When you click the second button it will not be recreated, so there won't be any control to handle the click event. If the controls that you want to create are limited in number, it's easier to create them from the start as invisible controls. Then you can just make them visible to have them rendered in the page.

        Despite everything, the person most likely to be fooling you next is yourself.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups