Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
persist values from one postback to another
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guest, post: 465956"] The easiest way to handle this is to simply check and ensure the first control is not set to index 0. if(ddlFirstControl.SelectedIndex==0) //code to indicate the user did not touch drop down 1 else //code to process dropdown 2 If you want to persist a boolean (not necessary if the first drop down has an invalid value, like "choose one"), you can store it in ViewState. //in Drop down change event for the first drop down ViewState("FirstControlChanged") = true; -- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA *************************** Think Outside the Box! *************************** [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
persist values from one postback to another
Top