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. How to create Dialogs and notifications?

How to create Dialogs and notifications?

Scheduled Pinned Locked Moved Web Development
csharpasp-netdatabasejavascriptwinforms
5 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
    Alivemau5
    wrote on last edited by
    #1

    Hi, I have a combobox (aka select) with some options retrieved from the database.. The user might choose one item from there or click next to the combo on "Other". Here is the thing: I wan't to show a dialog that lets the user to add a new registry to the database and after that, the dialog should be closed and the combo should have the new option without a simple refresh (an HTTP GET, because this would erase all the form input).. So.. Any tutorials for this? Im sure this is some typical procedure.. In winforms this is really easy because of events.. but in web? More notes: -The dialog should block the parent window (javascript?) -Its like the "add new label" dialog when you are seeing a message in Gmail -The form that haves the combo shouldnt lose the current input (ajax?) -I'm using ASP.NET MVC and LINQ TO SQL. Please help!

    O D 2 Replies Last reply
    0
    • A Alivemau5

      Hi, I have a combobox (aka select) with some options retrieved from the database.. The user might choose one item from there or click next to the combo on "Other". Here is the thing: I wan't to show a dialog that lets the user to add a new registry to the database and after that, the dialog should be closed and the combo should have the new option without a simple refresh (an HTTP GET, because this would erase all the form input).. So.. Any tutorials for this? Im sure this is some typical procedure.. In winforms this is really easy because of events.. but in web? More notes: -The dialog should block the parent window (javascript?) -Its like the "add new label" dialog when you are seeing a message in Gmail -The form that haves the combo shouldnt lose the current input (ajax?) -I'm using ASP.NET MVC and LINQ TO SQL. Please help!

      O Offline
      O Offline
      Oakman
      wrote on last edited by
      #2

      Alivemau5 wrote:

      In winforms this is really easy because of events.. but in web?

      Yes[^]

      Jon

      Rob Graham wrote:

      100% subsidies are very popular among the 50% of the population that pays no income tax...

      Soap Box 1.0: the first, the original, reborn troll-less

      A 1 Reply Last reply
      0
      • O Oakman

        Alivemau5 wrote:

        In winforms this is really easy because of events.. but in web?

        Yes[^]

        Jon

        Rob Graham wrote:

        100% subsidies are very popular among the 50% of the population that pays no income tax...

        Soap Box 1.0: the first, the original, reborn troll-less

        A Offline
        A Offline
        Alivemau5
        wrote on last edited by
        #3

        Those are CLIENT SIDED events... Did you at least read the post?

        O 1 Reply Last reply
        0
        • A Alivemau5

          Those are CLIENT SIDED events... Did you at least read the post?

          O Offline
          O Offline
          Oakman
          wrote on last edited by
          #4

          Alivemau5 wrote:

          Did you at least read the post?

          More than once. If you are interested in controlling this on the server side, I suggest you go here[^] However, most of you wanted to do doesn't require going back to the server to accomplish. I'd use JavaScript to get the input and then fire off a postback using the value you got from the user as the arg.

          Jon

          Rob Graham wrote:

          100% subsidies are very popular among the 50% of the population that pays no income tax...

          Soap Box 1.0: the first, the original, reborn troll-less

          1 Reply Last reply
          0
          • A Alivemau5

            Hi, I have a combobox (aka select) with some options retrieved from the database.. The user might choose one item from there or click next to the combo on "Other". Here is the thing: I wan't to show a dialog that lets the user to add a new registry to the database and after that, the dialog should be closed and the combo should have the new option without a simple refresh (an HTTP GET, because this would erase all the form input).. So.. Any tutorials for this? Im sure this is some typical procedure.. In winforms this is really easy because of events.. but in web? More notes: -The dialog should block the parent window (javascript?) -Its like the "add new label" dialog when you are seeing a message in Gmail -The form that haves the combo shouldnt lose the current input (ajax?) -I'm using ASP.NET MVC and LINQ TO SQL. Please help!

            D Offline
            D Offline
            David Skelly
            wrote on last edited by
            #5

            AJAX is a good solution for what you are describing here. There is an ASP.NET AJAX Toolkit which has a modal popup dialog (home page here: http://www.asp.net/ajax/[^]) although personally I think their widgets look a bit clunky compared to some of the other toolkits that are around (like JQuery or Dojo or YUI) but that's just personal taste. Not sure what the tutorials for the .NET toolkit are like, but there are plenty for JQuery/Dojo/YUI if you decide to go that route.

            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