Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Hi,
Change public ActionResult Submit(Login page) to public ActionResult Submit(Login currentPage).
Hi Guys,
am really firstrate with this,am creating Login page type,controller and views
Login Page type(Login.cs):-
namespace BlogCreation.Models.Pages
{
[ContentType(DisplayName = "Login", GUID = "b0e4e33f-ffd2-4491-b22e-92f5949879c0", Description = "")]
public class Login : PageData
{
[CultureSpecific]
[Display(
Name = "blog heading",
Description = "",
GroupName = SystemTabNames.Content,
Order = 3)]
public virtual string blogheading { get; set; }
}
}
LoginController(with two action methods):-
public class LoginController : PageController
{
public ActionResult Index(Login currentPage)
{
return View(currentPage);
}
public ActionResult Submit(Login page)
{
Return view(page)
}
}
Now i want to display the blogheading property in Index.cshtml and Submit.cshtml also, but its displayed in Index.cshtml only,below the UI Code.
Index.cshtml:-
@model BlogCreation.Models.Pages.Login
@{
Layout = null;
}
@Html.PropertyFor(p=>p.blogheading)
Submit.cshtml:-
@model BlogCreation.Models.Pages.Login
@{
Layout = null;
}
@Html.PropertyFor(p=>p.blogheading)
In index view the blogheading displayed properly, but in submit view its not displaying. am unable to find where i did mistake,can anyone helpe me out of this
Thanks,
Ramkee.G