{ [ContentType(DisplayName = "Home", GUID = "b48b974b-15f1-4fc5-8885-594ac465d932", Description = "")] public class Home : PageData {
[CultureSpecific]
[Display( Name = "Heading", Description = "", GroupName = SystemTabNames.Content, Order = 1)]
public virtual string Heading { get; set; }
[CultureSpecific]
[Display( Name = "Count", Description = "", GroupName = SystemTabNames.Content, Order = 2)]
public virtual int Count { get; set; }
}
i called this properties in .cshtml and i gave the data from user interface to properties, now my requirement is how to pass this pagetype properties data to normal class properties, this is my class
namespace EPIFind.Models { public class MyClass { public string Heading{ get; set; } public int count{ get; set; } } }
Hi Guys,
Icreated one page type with two properties like,
namespace EPIFind.Models.Pages
{
[ContentType(DisplayName = "Home", GUID = "b48b974b-15f1-4fc5-8885-594ac465d932", Description = "")]
public class Home : PageData
{
[CultureSpecific]
[Display(
Name = "Heading",
Description = "",
GroupName = SystemTabNames.Content,
Order = 1)]
public virtual string Heading { get; set; }
[CultureSpecific]
[Display(
Name = "Count",
Description = "",
GroupName = SystemTabNames.Content,
Order = 2)]
public virtual int Count { get; set; }
}
i called this properties in .cshtml and i gave the data from user interface to properties, now my requirement is how to pass this pagetype properties data to normal class properties, this is my class
namespace EPIFind.Models
{
public class MyClass
{
public string Heading{ get; set; }
public int count{ get; set; }
}
}
please guys can any one help me out of this.
Thanks,
Ramkee.G