I'm using a Wizard and in Step 2 there is a DropDownList which holds the list of roles in my application.
When Step 2 opens, I bind all roles to the DropDownList and select the current user's role as SelectedValue(default value) in that dropdownlist
When I go to Step 3, I first remove that default role first. Then I add the new selected value to the user again.
The thing is I execute both remove and add functions each time I go through the Step 2.
How can I check if the Dropdown SelectedIndexChanged is fired?
If nothing changes from the dropdownlist, I dont want to execute add & remove functions
I want to put add & remove functions into an IF STATE like
if( DropDownList is Changed )
{
<remove current role>
<add new role(SelectedValue) to user>
}
...
Go to the complete details ...