gpt4 book ai didi

没有提交的 ASP.net 按钮

转载 作者:行者123 更新时间:2023-12-04 16:29:43 25 4
gpt4 key购买 nike

是否有不会提交表单数据的 ASP 按钮。

每当我单击一个 asp 按钮时,它都会发布表单数据,我想更改该行为,以便我可以发布其他一些表单数据,我将通过编程方式创建它。

最佳答案

使用属性 UseSubmitBehaviour="false"解决了我的问题

<asp:Button ID="button1" runat="server" UseSubmitBehavior="false" Text="just a button" />

此属性自 .Net v2.0 起可用,有关更多信息: Button.UseSubmitBehavior Property

关于没有提交的 ASP.net 按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10072858/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com