ITsolutionWizard
asked on
mvc display name
My class in c#
namespace Domain
{
public class Principal
{
[Display(XmlName="FirstNam e")]
public string firstName { get; set; }
}
}
in my c# codes I would like to see
something like below:
generic.AddChild(doc, node,xmlName,"John Smiths");
is it possible?
namespace Domain
{
public class Principal
{
[Display(XmlName="FirstNam
public string firstName { get; set; }
}
}
in my c# codes I would like to see
something like below:
generic.AddChild(doc, node,xmlName,"John Smiths");
is it possible?
generic you mentioned is XML? The question is not clear.
ASKER
it is not about xml. I just want to extract the value from [Display(XmlName="FirstNam e")]
on my class.cs
on my class.cs
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
[Display(XmlName="FirstNam e")]
Can you do above?
Can you do above?
ASKER
[Display(Name="First Name")] will be used for the mvc view
I hope to get customized name for other resources ....
I hope to get customized name for other resources ....