i'm having a textbox inside a form.
[View]
<%=html.textbox("name") %>
[Controller]
Index(string name)
{
name = "something";
return View();
}
On Form Submit In this case without sending any ViewData the textbox value is maintained.But the value "something" is not setting up.
But whn i change the Action to [Controller]
Index()
{
string name="something";
return view();
}
the value is not maintained.
Really wat happening on that parameter.