0

Possible Duplicate:
Can we use Razor syntax in ASP.NET Webforms (*.aspx pages)?

is it possible to use razor syntax in asp.net project web form and cshtml file

@{

var greeting = "Welcome to our site!";

}
Community
  • 1
  • 1
soheil bijavar
  • 1,213
  • 2
  • 10
  • 18
  • no, razor is only in mvc views, i think nothing has changed since this [question](http://stackoverflow.com/q/5264852/944681) was asked.. – Michal Klouda Oct 24 '12 at 07:39
  • ASP.NET Helpers component dosent work for none mvc project ? – soheil bijavar Oct 24 '12 at 07:41
  • An explanation of what is and is not possible can be found here http://www.hanselman.com/blog/MixingRazorViewsAndWebFormsMasterPagesWithASPNETMVC3.aspx additional info can be found here too http://www.mikesdotnetting.com/Article/162/Using-Web-Pages-Helpers-in-ASP.NET-Web-Forms – Luke Baughan Oct 24 '12 at 07:47

0 Answers0