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. based on the session modalpopup extrender have to show

based on the session modalpopup extrender have to show

Scheduled Pinned Locked Moved ASP.NET
tutorial
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.
  • M Offline
    M Offline
    Member 3879881
    wrote on last edited by
    #1

    hi i have a link button..., the link button have 2 modalpopupextender..., based on the session value i like to view a modalpopupextender..., but its showing two modal popup extender at a time..., how to solve this..., this is my piece code: Post Comment

    Drag To Ur Place

    Drag To Ur Place

    code bolck: protected void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); } else { ModalPopupExtender2.Show(); } }

    Thanks & Regards, Member 3879881, please don't forget to vote on the post

    S J 2 Replies Last reply
    0
    • M Member 3879881

      hi i have a link button..., the link button have 2 modalpopupextender..., based on the session value i like to view a modalpopupextender..., but its showing two modal popup extender at a time..., how to solve this..., this is my piece code: Post Comment

      Drag To Ur Place

      Drag To Ur Place

      code bolck: protected void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); } else { ModalPopupExtender2.Show(); } }

      Thanks & Regards, Member 3879881, please don't forget to vote on the post

      S Offline
      S Offline
      Sundeep Ganiga
      wrote on last edited by
      #2

      Member 3879881 wrote:

      protected void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); } else { ModalPopupExtender2.Show(); } }

      Try To Hide other POPUP Extender alternately. void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); ModalPopupExtender2.Hide(); } else { ModalPopupExtender2.Show(); ModalPopupExtender1.Hide(); } Any Problem with this?

      Sundeep Ganiga When the only tool you have is a hammer, everything looks like a nail. Come Forth Yourself to Click "Good Answer" for any expected solution. Let us Support our C Project Programmers who provide solutions here.

      1 Reply Last reply
      0
      • M Member 3879881

        hi i have a link button..., the link button have 2 modalpopupextender..., based on the session value i like to view a modalpopupextender..., but its showing two modal popup extender at a time..., how to solve this..., this is my piece code: Post Comment

        Drag To Ur Place

        Drag To Ur Place

        code bolck: protected void LinkButton2_Click(object sender, EventArgs e) { if (Session["uname"] == null) { ModalPopupExtender1.Show(); } else { ModalPopupExtender2.Show(); } }

        Thanks & Regards, Member 3879881, please don't forget to vote on the post

        J Offline
        J Offline
        Jay Royall
        wrote on last edited by
        #3

        What I have done in the past is to use a dummy control as the TargetControlID and then set the display property of that control to 'None'. The problem you're having is that LinkButton2 activates both ModalPopupExtenders on the client, whereas what you really want to do is show one of them from the server. Placing a hidden dummy control on your form will mean that the ModalPopupExtenders never get activated from the client.

        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