本文介绍了按钮单击ASP.NET后,禁用按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



请帮帮我。

我有一个webform,它有很多字段但是那里是一个单选按钮列表报告,是或否..它有按钮生成电子邮件。我想要的是当用户选择是并点击生成电子邮件时,应该生成一封电子邮件,然后按钮应该永久禁用,无论用户是否在2天后访问该页面都应该禁用该按钮。

如果用户选择否并点击电子邮件按钮,它不应该生成电子邮件,但它应该永久禁用按钮。

一如既往地期待您的合作。



谢谢



我的尝试:



我试过搜索谷歌,但之前没有报告过类似于我的例子或问题。

Hello guys,

Please help me out here.
I have a webform and it has got quite a few fields but there is one radio button list "Report" with yes or no.. and it has button generate email. What i want is when the user selects yes and clicks on generate email, an email should be generated and after that the button should get disabled permenantly no matter if the user visits the page even after 2 days the button should be disabled.
And also if the user selects no and clicks the email button it should not generate email but again it should disable the button permenantly.
Looking forward to your coorporation as always.

Thanks

What I have tried:

I have tried searching google but there is no example or problem reported previously similar to mine.

推荐答案



这篇关于按钮单击ASP.NET后,禁用按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 04:21