|
@{
var host = Request.Url.ToString();
host = host.Substring(0, host.IndexOf(Request.Path));
}
<form method="post" action="/Pages/Edit">
<fieldset>
<legend>Edit Page</legend>
<ol>
<li>@HtmlExt.TextAndLabel("Title", "Title", Page, new { style="width:100%" })</li>
<li>
@Html.Label("Content")
<textarea name="Content" rows="8" cols="60" style="width:100%">@Page.Content</textarea></li>
<li>@HtmlExt.TextAndLabel("SEO Id", "Id", Page, new { style="width:100%" })<br />
@Html.Label("Permanent Link")
@host/Pages/@Page.Id
</li>
</ol>
@Html.Hidden("OldId", @Page.Id)
<p><input type="submit" value="Save" /></p>
</fieldset>
</form>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.