Greetings,
I have a dropdown list where I select an item. Once I select the item, I moved to another page. The item is stored in a session object as follows:
Session["claimsSessionDetails"] = claimsSessions;
var claimsSessionInfo = (ClaimsSessions)Session["claimsSessionDetails"];
I have my dropdown list component as follows:
@Html.EJ().DropDownList("selectClaims").Datasource((IEnumerable<object>)
ViewBag.datasourcex).DropDownListFields(df => df.ID("ClaimsId").Text("ClaimsFile").Value("ClaimsFile")).
WatermarkText(Claims.Resources.Resource.SwitchClaim )
What I want to achieve is that after I have moved to the next page, when I navigate to the previous page, I want the dropdown list to be populated with the selected item that I have selected prior moving to the next page.
Could someone please advise how to achieve this via javascript ?
Thanks & Regards,