1

I am new to asp.net I need to convert html code to cshtml.I am looking for online converter Can anybody help me?
Is there any online converter to convert html code to cshtml?

user7397787
  • 1,410
  • 7
  • 28
  • 42

1 Answers1

0

cshtml is also a html, In which you can write your asp code and logic.

currently no such tool present which gives you cshtml pages, you need to do it manually, and its way more easier. In cshtml you got advante to reuse and seperate your html code into multiple modules.

for more advantages you can see: cshtml benefits

Some cshtml code containing razor syntax

Community
  • 1
  • 1
Mohit
  • 1
  • 1
  • ok .But its showing error `Server Error in '/' Application.` can you please help me.I just added one `div` part in view page.why its showing error?please help me – user7397787 Mar 11 '17 at 07:20
  • you are getting server error, because of config. Could you check the App_Start/RouteConfig.cs, ** public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "hom", action = "Index", id = UrlParameter.Optional } ); } ** where controller will be your default controller and action will be your default method in controller. – Mohit Mar 14 '17 at 13:58