How to render partial view in some specific div without using ajax in asp.net mvc 3???
For example I have a model:
public class TestViewModel
{
public string FullText
{
get
{
retrun "Full text";
}
}
public string ShortText
{
get
{
return "Short text";
}
}
}
Main view:
@model TestViewModel
...
<div id="RenderHere">
</div>
@Html.ActionLink("Show short text");
@Html.ActionLink("Show full text");
...
And tow partial views:
ShortTextParial
@model TestViewModel
@Html.LabelFor(m => m.ShortText);
@Model.ShortText;
and FullTextPartial
@model TestViewModel
@Html.LabelFor(m => m.FullText);
@Model.FullText;
How can I render, for example, ShortTextPartial in "RenderHere" div after presing "Show short text" actionlink WITHOUT using ajax??? I have already found such solutions, but they don't fit me.
P.S. I don't want to use Ajax because if Java script is disabled on client side the page will not work correctly.