Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 从静态html页面调用blazor页面_Asp.net_Asp.net Core Mvc_Blazor Server Side - Fatal编程技术网

Asp.net 从静态html页面调用blazor页面

Asp.net 从静态html页面调用blazor页面,asp.net,asp.net-core-mvc,blazor-server-side,Asp.net,Asp.net Core Mvc,Blazor Server Side,我有ASP.NET核心MVC应用程序。它在IIS中发布 我有一个Test.html文件 Test.html: <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Test.html</title> </head> <form id="id1" runat="s

我有ASP.NET核心MVC应用程序。它在IIS中发布
我有一个Test.html文件
Test.html:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Test.html</title>
</head>
    <form id="id1" runat="server" method="post" action="http://199.199.199.199/MVC_Publish/ControllerName/ActionName">
     ...
    </form>
</body>
</html>

Test.html
...
当我在其他PC的浏览器(同一网络)中打开Test.html并单击sumbit按钮时,我可以访问publish MVC页面并能够调用特定的操作方法

我想对blazor服务器应用程序执行同样的操作 它也在IIS中发布。
在我的blazor服务器页面中,我有一个登录.razor页面。
当我从Test.html单击提交按钮时,我想访问此页面
行动中应该写些什么

<form id="id1" runat="server" method="post" action="_______________">

您不能使用post方法访问blazor页面,您可以将其更改为get,并且在IIS上运行时,操作url是相同的。