0

do I still need to call html.ecnode even if I'm only using Html.LabelFor and Html.TextBoxFor or similar function and not using the text directly?

AppDeveloper
  • 927
  • 11
  • 21

1 Answers1

1

if you calling html.textboxfor and htmp.textbox in (mvc2)

        <%: Html.TextBoxFor(x=> x.MyName) %>

then no need to call html.encode.

: in <%: is a html.encode

SO Question for more details

Community
  • 1
  • 1
swapneel
  • 3,061
  • 1
  • 25
  • 32