Hi ,
I want to Redirect from one view to another view with value i.e i saved the details in add page and display the save information as Label in 2nd view. I have tried with "RedirectToAction" Method,it is navigating but not displaying the Text.
In Controller,
ModelState.AddModelError("PropertyName","User Added");
return RedirectToAction("ViewUsers" , "Common" , ModelState);
In my ViewUsers.aspx ,
<span id="label"></span>
<%=ValidationMessageFor(exp => exp.PropertyName)%>
Here i count not get the text i have passed from Add page but when i give static message to this property it will display
like <%=ValidationMessageFor(exp => exp.PropertyName , "Test")%> .
Thanks,
M.Teja