I have a form where users can update their information (update.cshtml). When the user submits, I want his information to be updated on his info page (userX.cshtml).
Here's an example of how I get the information:
if(post){
string name= Request["Name"];
<h1>@name</h1>
}
else {
<form method="post" action="">
Name: <input type="text" name="Name" style="height:16px; font-size:14px;"/>
</form>
}
Is the only way to access the variable name accross other pages is to throw it into a database?
This post has been edited by rbflowers: 17 September 2012 - 12:01 PM

New Topic/Question
Reply



MultiQuote






|