jeudi 5 novembre 2015

ASP.net helper class explantation on Razor

I am very new to ASP.net. When I was referring tutorial I met some problems. I just google those problems. But i unable to get answers for it. Here my questions.

  1. What is the meaning of x => x.Created I mean I just want to what is the => symbol meaning?
  2. Why put @ symbol after new keyword? Can we just type as new {class="date"}

here my code block

<div>
    @Html.TextBoxForModel(x => x.Created, new { @class = "date" })
</div>

Aucun commentaire:

Enregistrer un commentaire