如何解决在Blazor应用程序中捕获Microsoft表单的提交事件
我在使用ASP.NET Core 3.1.302创建的Blaozr应用程序中出于调查目的使用Microsoft Forms
。下面是有关Microsoft Form
的外观的屏幕截图:
@page "/questionarepoc"
@using Microsoft.AspNetCore.Hosting
@inject IWebHostEnvironment HostEnvironment
<h3>Questionare POC</h3>
@if (HostEnvironment.EnvironmentName=="Development")
{
<iframe width="640px" height="480px" src="https://forms.office.com/Pages/ResponsePage.aspx?
id=BiopSuv_ckSNqp3fkzLnW_NGlVhpUkdKjXPYvQce5XRUQzgwTExXOU0wMlFIT0hFWUpIS04zTlhRVi4u&embed=true"
frameborder="0" marginwidth="0" marginheight="0" style="border: none; max-width:100%; max-
height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>
}
@code {
}
基本上,我刚刚将iframe
嵌入到创建此Microsoft Form
时生成的剃刀组件中。
我现在想做的是从中捕获提交事件,但是如果成功提交表单,则应该捕获该事件。那么最好的方法是什么?
您可以在下面看到表格。
我还要在这里粘贴iframe,这样,如果有人想贡献并帮助我解决此问题,它就会变得很容易。
<iframe width="640px" height= "480px" src= "https://forms.office.com/Pages/ResponsePage.aspx?id=BiopSuv_ckSNqp3fkzLnW_NGlVhpUkdKjXPYvQce5XRUQzgwTExXOU0wMlFIT0hFWUpIS04zTlhRVi4u&embed=true" frameborder= "0" marginwidth= "0" marginheight= "0" style= "border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。