asp.net按钮 [英] asp.net button

查看:67
本文介绍了asp.net按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我想知道按键输入的过程是什么,我该如何控制呢?..就像我在填写表格时有一个保存和取消按钮.在输入时,我希望光标运行保存单击事件,但是它以某种方式运行另一个按钮单击事件,并且我不再在页面上,并且所有已填写的信息都消失了.有人可以详细说明如何处理吗?

谢谢
Amit

hey everyone

I wanna know what is the process of keypress enter and how can i control that?.. Like i have a form when it is filled there are save and cancel button. On enter i want cursor to run save click event, but it somehow runs another button click event and I am no longer on my page and all the information filled is gone. Could someone elaborate how is this handled?

Thanks
Amit

推荐答案

Page.Form.DefaultButton = btnSave.UniqueID;


我不太确定您要的是什么.您的问题还不清楚.

如果您询问如何处理被单击的Button,那么通常可以编写代码来处理您感兴趣的Button的Click事件.

如果您还有其他意思,请编辑您的问题以使其更清楚.
I''m not really sure what it is that you are asking for. Your question is a little unclear.

If you are asking how to handle a Button being clicked then normally you write code to handle the Click event of the Button you are interested in.

If you mean something else then please edit your question to make it clearer.


这篇关于asp.net按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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