Time:09-28
CodePudding user response:
everyone a great god I want to ask how to change the set of HTML code to asp.net
the first HTML file extensions to aspx The second increase codebehind code The third increase form and other space ID and runat="server" The fourth increase & lt; Asp: & gt; HTML quick into MVC you teach?? CodePudding user response: Direct CSHTML CodePudding user response: Add a controller CodePudding user response: Asp has no need to use, if the project is too old, or redesign directly into MVC, with Razor view engine, namely CSHTML suffix, data binding is easier than asp https://docs.microsoft.com/zh-cn/aspnet/core/razor-pages/index? View=aspnetcore - 2.2 & amp; Tabs=visual studio CodePudding user response: refer to the eighth floor Masrao response: asp has no need to use, if the project is too old, or redesign directly into the MVC, with Razor view engine, namely CSHTML suffix, data binding is easier than asp https://docs.microsoft.com/zh-cn/aspnet/core/razor-pages/index? View=aspnetcore - 2.2 & amp; Tabs=visual - studio Grammar: https://docs.microsoft.com/zh-cn/aspnet/core/mvc/views/razor? View=aspnetcore - 2.2 CodePudding user response: According to the HTML find a common part of you, to extract the templates (common) + data (different) is stored in the database dataWrite aspx database data into a web page, add interaction, This process also somebody specialize, called "imitation station", there is nothing technical content and cheap is a, as long as you a little money, CodePudding user response: Very simple before I changed but more troublesome you want to change to a page, you will create a new asp page, and then make a copy of all the inside of the body content on your asp page in the body, and then to pull down your control to change it CodePudding user response: Write a. Ashx, do jump, no better than those of strong? All HTML, write a traversal, storage pool has become, Turn to page, but also drunk, CodePudding user response: After changed the data which come you? If you just want to let others think you this is that you can create a new asp.net asp.net the HTML copy directly to the past not to go?
asp has no need to use, if the project is too old, or redesign directly into the MVC, with Razor view engine, namely CSHTML suffix, data binding is easier than asp https://docs.microsoft.com/zh-cn/aspnet/core/razor-pages/index? View=aspnetcore - 2.2 & amp; Tabs=visual - studio
Page link:https//www.codepudding.com/net/38170.html