I am trying to keep the selected value in a drop down box after page reloads by creating session but i am not sure if my logic works because the drop down is not keeping the selected value before the refreshed.: here is what i have:
string txtDDLLocation = ddlLocation.SelectedValue;
Session["MySessionVar"] = txtDDLLocation;
Page.Response.Redirect(Page.Request.Url.ToString(), true);
ddlLocation.SelectedValue = (string)Session["MySessionVar"];