navigate back to same page on select-dropdown selection without clearing down controls?

I have a text box and a drop-down selection on a page, plus a bunch of urls.

Clicking on the urls navigate back to the page with an updated url (for asp.net MVC2 functionality). This does not cause the texbox to clear down.

On my dropdown "onchanged" event I call window.location = url; (with url being the pages url with a sortOrder in the query string)... but this causes the pages text-box text to clear down.

Is there any way I can get the drop-down to postback to the page on selection changed and NOT clear down the text box?

Cheers,

James.

Answers


What do you mean with "clear down"? Does the dropdown lose it's selected item (e.g. gets reset to a default value)?


Need Your Help

how to save dynamic check box changes

c# asp.net .net c#-4.0 event-handling

I have few check boxes that are created dynamically and existing selections will be shown but when user makes changes I want to store them back. here is the code that generates and selects dynamica...

Tips for querying dynamic object fields in Crate

wildcard crate

I have a table such as the one at the end of this question. I insert into the peers_array field a dynamically keyed array/object such as:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.