开发者

ASP.NET disappear message after a while

开发者 https://www.devze.com 2023-03-29 11:23 出处:网络
On a page I display a message against button click.Message is a Label control. My problem is that once button is clicked me开发者_如何学Pythonssage appear but it should automatically disappear after 3

On a page I display a message against button click.Message is a Label control. My problem is that once button is clicked me开发者_如何学Pythonssage appear but it should automatically disappear after 3 seconds of time. I am working on ASP.NET in .NET framework 4.0

Thanks


Sounds like you need some client-side scripting, e.g. jQuery / JavaScript. Bind to the onclick event of your button, set a delay once the event is hit, and then hide your message.

0

精彩评论

暂无评论...
验证码 换一张
取 消