如何在消息框上设置Enter键 [英] How to Set Enter Key on Message Box

查看:90
本文介绍了如何在消息框上设置Enter键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在Asp.net 2010工作的每一个人,现在我显示另一个表单提交按钮的一个消息框点击事件。



现在我想在消息框是和否按钮上设置回车键,所以有人请帮我,我该怎么做。













谢谢你...

Hello,
To Every One I am Working in Asp.net 2010, Now I show one Message Box of click event of another form submit button.

Now i want to set Enter key on Message Box Yes and No Button so some one please help me how can i do this .






Thanks Regards ...

推荐答案

我很抱歉,我为此道歉......

无需道歉! :笑:

除了你告诉我们的内容之外,我们真的看不到任何东西,所以当你解释它时,你必须退后一步,这一切。很多人都太接近于问题,他们认为我们在开始打字之前就知道他们正在谈论的是什么......;)





试试这个: HtmlForm.DefaultButton [ ^ ] - 它应该做你想要的。
"I am Sorry for that and i apologize for that..."
No need to apologize! :laugh:
It's just that we really can't see anything except what you tell us, so you have to "take a step back" from the problem when you explain it, it all. Lots of people get too close to teh problem that they assume we know exactlky what they are talking about before they start typing... ;)


Try this: HtmlForm.DefaultButton[^] - it should do what you want.


这篇关于如何在消息框上设置Enter键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆