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. Ajax ModalPopUpControl [modified]

Ajax ModalPopUpControl [modified]

Scheduled Pinned Locked Moved ASP.NET
javascripthelpquestion
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.
  • J Offline
    J Offline
    J Liang
    wrote on last edited by
    #1

    Hi, I am having this problem with this ModalPopUpControl from Ajax. It did pop up as it meant to be but I want it to do something more. Basically, there are two Panel that will pop up, lets name it Panel1 and Panel2. Panel2 will appear after Panel1 if some conditions are met, if not, it shoudl not appear. So in Panel1, I put a button Button1, hoping I can put in some condition under this button to call out Panel2. I want the protected void Button1_Click(object sender, EventArgs e) to fire but it seems nothing happens, it just show me Panel2 straight without checking the condition. So I wanted to know how can I set some conditions to stop the ModalPopUpControl to proceed if the conditions are not met. Or another way is how I can invoke a button click from javascript so that it will run the protected void Button1_Click(object sender, EventArgs e) for me since the ModalPopUpControl has a OnOkScript which will call a javascript function in the page. Thanks in advance. :)

    modified on Tuesday, May 20, 2008 5:28 AM

    S 1 Reply Last reply
    0
    • J J Liang

      Hi, I am having this problem with this ModalPopUpControl from Ajax. It did pop up as it meant to be but I want it to do something more. Basically, there are two Panel that will pop up, lets name it Panel1 and Panel2. Panel2 will appear after Panel1 if some conditions are met, if not, it shoudl not appear. So in Panel1, I put a button Button1, hoping I can put in some condition under this button to call out Panel2. I want the protected void Button1_Click(object sender, EventArgs e) to fire but it seems nothing happens, it just show me Panel2 straight without checking the condition. So I wanted to know how can I set some conditions to stop the ModalPopUpControl to proceed if the conditions are not met. Or another way is how I can invoke a button click from javascript so that it will run the protected void Button1_Click(object sender, EventArgs e) for me since the ModalPopUpControl has a OnOkScript which will call a javascript function in the page. Thanks in advance. :)

      modified on Tuesday, May 20, 2008 5:28 AM

      S Offline
      S Offline
      sukkureddy
      wrote on last edited by
      #2

      U have to write those code in Button ONClick event ,

      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