Hello,
I have a problem in preserving the values in the textbox after dropdownlist selected index changed in asp.net mvc. Below is the code for initiating the dropdown onchange event.
@Html.DropDownList("BranchId",null,"Select Branch", new { onchange = "location.href='/User/GetRoles?BranchId='+this.options[this.selectedIndex].value" })
and the roles dropdown binded with the values, but what i typed in the textboxes just above the branch dropdown get lost.
Please help me
Regards
Azeem