It’s convenient using html, it’s easier for me to just use regular html in my views, for example, creating a text field with <input type="text" maxlength="30" name="firstname"><% = html.textbox ("firstname")%> instead. Or <form method="post" name="myform">instead <% html.beginform() { %>.
<input type="text" maxlength="30" name="firstname">
<form method="post" name="myform">
<% html.beginform() { %>
Is this considered bad practice? Should I force myself to use helpers, etc.? Will I encounter problems if I continue to use regular html?
Just what I was interested in, since most of the examples and things that I see on the Internet use all of the above helpers and methods ...
- PHP . - , , - ( javascript, , ), . HTML-, .
HTML runat = "server" , .
ASP.NET , (, , ) , , , javascript. viewstate, (!) . HTML.
, , ASP.NET ( ) HTML-. WYSIWYG, , , , , .
HTML . ; , HTML, , HTML . , , , . , , , / -.
, - "" .
, .
Html html . , Html.BeginForm actionurl ( , ). actionurl, , . Htmlhelper, Webform. . html-, . mvc gridview.
When I first worked on MVC, I tried to use Html Helpers and even create my own helpers. However, when I tried to use jQuery / Ajax in my application, I try to use more and more raw HTML. I don't think using raw HTML is bad practice. If you need more control on the client side, it will be easier for me to work with the source HTML.
Source: https://habr.com/ru/post/1702382/More articles:Checking the number in DerivedColumn data flow task in SSIS - sql-serverРежим Visual Studio 2008 Emacs - visual-studio-2008Is it wrong to use LinkButtons as hyperlinks? - .netHow to record wav sound from microphone using Windows API? - windowshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1702381/usability-solutions-to-displaying-denormalized-data&usg=ALkJrhgwTFyV5hTkPoi-36nJD13PfNcgzAHow to show ShowDialog () from MDIChild form correctly? - .netRequest Tracker on Rails? - ruby | fooobar.comСохранять идентификатор пользователя в Principal или Identity? ASP.Net/OpenID - openidPartial Project Issues Visual Studio Database Pro - visual-studio-dbproVB6 - How to automatically break command line compatibility (or msbuild) - compatibilityAll Articles