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. Modal PopUp extender

Modal PopUp extender

Scheduled Pinned Locked Moved Web Development
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.
  • B Offline
    B Offline
    berba
    wrote on last edited by
    #1

    Hi, I've added a modal popup extender in my application as follow: If ds.Tables(0).Rows.Count > 0 Then ModalPopupExtender1.Show() End If If Checkbox1.Checked = True Then loadgrid() End if However I've noticed that the modal pop up is loaded after checking the condition Checkbox1.Checked = True. Any idea how to load the popup then check the condition Checkbox1.Checked = True Cheers

    F S 2 Replies Last reply
    0
    • B berba

      Hi, I've added a modal popup extender in my application as follow: If ds.Tables(0).Rows.Count > 0 Then ModalPopupExtender1.Show() End If If Checkbox1.Checked = True Then loadgrid() End if However I've noticed that the modal pop up is loaded after checking the condition Checkbox1.Checked = True. Any idea how to load the popup then check the condition Checkbox1.Checked = True Cheers

      F Offline
      F Offline
      frostcox
      wrote on last edited by
      #2

      I take it that you dataset is got inside you loadgrid() function, so of course you code would check that the dataset and then display the modal if it were empty. am I missing something here?

      1 Reply Last reply
      0
      • B berba

        Hi, I've added a modal popup extender in my application as follow: If ds.Tables(0).Rows.Count > 0 Then ModalPopupExtender1.Show() End If If Checkbox1.Checked = True Then loadgrid() End if However I've noticed that the modal pop up is loaded after checking the condition Checkbox1.Checked = True. Any idea how to load the popup then check the condition Checkbox1.Checked = True Cheers

        S Offline
        S Offline
        Sandeep Mewara
        wrote on last edited by
        #3

        berba wrote:

        how to load the popup then check the condition Checkbox1.Checked = True

        Just make sure that dataset's first table has some data to open modal popup independently. All you need is to make this condition true without depending on checkbox state.

        ds.Tables(0).Rows.Count > 0

        Sandeep Mewara [My last tip/trick]: Server side Delimiters in ASP.NET[^]

        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