open a pop up window (modal), add records, refresh parent page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dorandoran
    New Member
    • Feb 2007
    • 145

    open a pop up window (modal), add records, refresh parent page

    I put this in google search and came up with all sorts of different way to handle my situation. Please suggest the best way. I rather hear it from you guys as to which route is the best way to go.

    My search "asp.net javascript pop up window add a record refresh page"

    I am using: vs2005, c#, asp.net

    I would like a pop up windows (modal) so I can add a record to the department table, then close this window and refresh the parent page. (I just want to refresh the datalist_Dept in my parent page listuser.aspx). How?
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    "Best" is a relative term depending a person's needs and situation.
    Does someone have a greater need for "snappy" UI, or faster processing in the background and so on. It also depends on a person's programming style.

    What is the best car for me to get?
    Well... That' depends.

    My suggestion is to actually read the various methods you've found. What strikes a chord with you? What seems to lean in the direction you're aiming? What is not vast overkill for your needs? What is the most reusable? What do you actually understand so you can re-work it later, versus useful but total gibberish?

    Then experiment with the methods you've read and think you might like to use. Something will standout to you as best for you.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Have you checked out the ModalPopup control provided by the AjaxToolkit?

      What I would do is place any controls used for Adding/Editing a record and into a Panel that has the ModularPopup extender attached to it.

      This will be displayed when the user wants to add/edit a record.

      When the user is finished editing, they'll click a button which will post back to the server and refreshes the stuff displaying the records.

      -Frinny

      Comment

      Working...