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. Showing a single Modal Popup Extender on Click of Multiple Controls.

Showing a single Modal Popup Extender on Click of Multiple Controls.

Scheduled Pinned Locked Moved ASP.NET
help
2 Posts 2 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.
  • S Offline
    S Offline
    sheringkapoting
    wrote on last edited by
    #1

    I have a Modal Popup Extender which I show on two different Button click events i.e btnAddNew_Click() & having imgbtnNew as TargetControlID. the problem is I want Two of the Textboxes txtFullName & txtShortName to be Disabled or Visible false on imgbtnNew_Click() Where as Visible True on btnAddNew_Click() Can anyone help....

    J 1 Reply Last reply
    0
    • S sheringkapoting

      I have a Modal Popup Extender which I show on two different Button click events i.e btnAddNew_Click() & having imgbtnNew as TargetControlID. the problem is I want Two of the Textboxes txtFullName & txtShortName to be Disabled or Visible false on imgbtnNew_Click() Where as Visible True on btnAddNew_Click() Can anyone help....

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      I think you can ask the sender "sender" who fired the and called the function. I just used it a couple of days ago. You could of just Googled it to get the anwser.

      string strID = ((System.Web.UI.Control) sender).ID;

      {EDIT] or you can use the .OnClientClick to issue some javascript to change the display state of the textbox from block to none. The javascript is fake, and just meant to give you an idea of how to use OnClientClick

      .OnClientClick = "var txtID = getElementByID('txtBox'); txtID.style.display = 'none'; return true;"

      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