如何可能直接和Html页面到C#页面 [英] How Do I Direct And Html Page To A C# Page If Possible
本文介绍了如何可能直接和Html页面到C#页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我可以将html页面指向网页吗? 。是这样我怎么能实现这个或我该怎么做才能确保这两个应用程序一起工作(html和visual studio)。
Hi everyone ,
is it possible for me to direct an html page to a web page ? . is so how can i implement this or what should i do to ensure that these two applications works together(html and visual studio).
推荐答案
你需要明白服务器端C#活动处理的结果是在客户端呈现的HTML。发送到浏览器的内容已经是html编码,并且所有基于页面的技术基本上都做同样的事情:动态构建一个html文件并将其发送到浏览器,而不是仅仅从文件系统返回一个平面的html文件。
所以说:是的,您可以轻松地从平面HTML页面链接到.aspx页面或MVC路线,只需使用基本锚点。 br />
例如:
You need to understand that the result of C# active processing on the server side IS HTML rendered on the client side. What get's sent to the browser is html encoded already, and all page-based technologies basically do the same thing: build an html file on the fly and send it to the browser, rather than just returning a flat html file from the file system.
So all that said: yes, you can easily link from a flat HTML page to an .aspx page or an MVC route, simply by using a basic anchor.
Such as:
<a href="http://www.mydotnetwebsite.com/index.aspx">Clicky</a>
就此而言,Visual Studio是一种设计工具,而不是网络技术。不需要特殊的酱汁。您可以在以下网址找到您的许多问题:
www.asp.net/get-started
[ ^ ]
这篇关于如何可能直接和Html页面到C#页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文