Use
RedirectToAction[
^] to redirect the browser to another action.
Public Sub FlagBtn_Click(ByVal myFlag As String) As ActionResult
Attributes.envProp._LanguageFlag = myFlag
Return RedirectToAction("Index", "login")
End Sub
NB: The first line of that method looks suspicious. Are you trying to store values in a field between requests? That won't work. You'd need to use session state, or the
TempData
collection, to persist the data.