drop down list post back refreshes to default state. How to prevent this?
-
Hi all, I have a dropdown list on a c# webpage. The page allows the user to select from a dropdown. The page allows the user to click on a submit button after selecting. Once the user selects and presses the dropdown, the system automatically refereshes the page and refereshes the dropdown to default state which doesn't allow me to capture the dropdownllst.SelectedValue. Kinda frustrating, Any suggestions? Thanks
-
Hi all, I have a dropdown list on a c# webpage. The page allows the user to select from a dropdown. The page allows the user to click on a submit button after selecting. Once the user selects and presses the dropdown, the system automatically refereshes the page and refereshes the dropdown to default state which doesn't allow me to capture the dropdownllst.SelectedValue. Kinda frustrating, Any suggestions? Thanks
post this in asp.net forum
My small attempt...
-
Hi all, I have a dropdown list on a c# webpage. The page allows the user to select from a dropdown. The page allows the user to click on a submit button after selecting. Once the user selects and presses the dropdown, the system automatically refereshes the page and refereshes the dropdown to default state which doesn't allow me to capture the dropdownllst.SelectedValue. Kinda frustrating, Any suggestions? Thanks
humblepgmr wrote:
which doesn't allow me to capture the dropdownllst.SelectedValue.
Is viewstate disabled for your page ? Where you are trying to capture the selected item ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions