Questions tagged [razor]

Questions relating to the Razor syntax used in ASP.NET MVC and ASP.NET Web Pages.

Filter by
Sorted by
Tagged with
15
votes
1answer
5k views

Editable Sitecore fields with Glass

Folks I'm trying to do something basic here which is have a general link and an image field as editable in experience editor on my view using Glass. my end goal is to have two editable fields which ...
6
votes
1answer
702 views

Is there a way to supress rendering width and height attribs using Fortis Image.Render?

Using Fortis Image.Render, is there a parameter to suppress rendering the Width and Height attributes? Example of the image: @Model.ImageField.Render(new { @class = "my-class-name" })