How to create Dialogs and notifications?
-
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!
-
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!
Alivemau5 wrote:
In winforms this is really easy because of events.. but in web?
Jon
Rob Graham wrote:
100% subsidies are very popular among the 50% of the population that pays no income tax...
-
Alivemau5 wrote:
In winforms this is really easy because of events.. but in web?
Jon
Rob Graham wrote:
100% subsidies are very popular among the 50% of the population that pays no income tax...
-
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...
-
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!
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.