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. popup window open automatically when a row inserted to the table

popup window open automatically when a row inserted to the table

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadmin
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.
  • A Offline
    A Offline
    Ahamed Azeem
    wrote on last edited by
    #1

    hi guys,, i want to open a model popup extender when a row inserted to the particualar table now i can open a model popup window manually but i want it to be done automatically if a row inserted to the table in sql server 2005 Please let me know as soon as possible

    Ahamed Azeem software Programmer

    M P 2 Replies Last reply
    0
    • A Ahamed Azeem

      hi guys,, i want to open a model popup extender when a row inserted to the particualar table now i can open a model popup window manually but i want it to be done automatically if a row inserted to the table in sql server 2005 Please let me know as soon as possible

      Ahamed Azeem software Programmer

      M Offline
      M Offline
      Morgs Morgan
      wrote on last edited by
      #2

      if u want to do it from codebehind, make your main div to runat="server" so that you can access it from codebehind. e.g.

      my popup content

      After the code for inserting a new row executes the very last thing u must now do is to show the modal. e.g.

      public void InsertTableRow()
      {
      //here i have inserted a new row into my table..

      //now i will show the updates in a popup modal like so:
      popupModal.Style.Value = "display:block;";
      //watch here, am applying new style for this div on a div-id, which then mean that all your fancy css styles should be appended to your class(e.g. myPopupClass). if u include all your css on your id and u execute the above code to show your modal the css is going to be overwritten....
      }

      hope that helps...

      1 Reply Last reply
      0
      • A Ahamed Azeem

        hi guys,, i want to open a model popup extender when a row inserted to the particualar table now i can open a model popup window manually but i want it to be done automatically if a row inserted to the table in sql server 2005 Please let me know as soon as possible

        Ahamed Azeem software Programmer

        P Offline
        P Offline
        Prerak Patel
        wrote on last edited by
        #3

        You can use Open() method of ModalPopupExtender in code behind when new row is added.

        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