Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2165
HTML Editor and dot problem
posted

This works:

@(Html.Infragistics().HtmlEditorFor(p => p.MyHtmlText).ID("MyHtmlText").InputName("MyHtmlText").Render())

But this doesn't:

@(Html.Infragistics().HtmlEditorFor(p => p.Person.Name).ID("Person.Name").InputName("Person.Name").Render())

Is there a way to use the second approach?

Parents
  • 16310
    Offline posted

    Hello Luis,

    It does not work because "Person.Name" is passed and accepted as string and cannot be evaluated. Please try to pass it  without the quotes:

    @(Html.Infragistics().HtmlEditorFor(p => p.Person.Name).ID(Person.Name).InputName(Person.Name).Render())

    or maybe Model.Name. Howewer it depends on your configuration if this would work. Please explain what would you like to achieve, and what do you expect Person.Name to return ?

    It would be also helpful if you provide more code from your model and controller and I will suggest accordingly.

Reply Children