N
N
netstalkerrr2015-08-10 02:11:26
HTML
netstalkerrr, 2015-08-10 02:11:26

asp.net mvc. HTML VS CSHTML + JS?

Hello. I have a question. Do asp.net mvc projects use html + js instead of *.cshtml? I recently worked with spring mvc and used html + js and I find it more convenient. Thanks in advance for your reply.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JSLik, 2015-08-10
@netstalkerrr

You are confusing concepts, cshtml is a view file where Razor syntax is used, html is a normal page with html code. If you want to use html pages - use. Nobody bothers you, only there you will not be able to insert C # code through Razor

R
Roman, 2015-08-10
@yarosroman

CHtml is just a template engine, the question is fundamentally wrong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question