如何在gridview上控制光标。 Vb.net网页表单。 [英] How to control cursor on gridview. Vb.net web form.
问题描述
在vs.2005上开发vb.net代码网页表单。
我想在文本框中控制光标焦点 网格视图。我在gridview上有2个文本框。 Textbox1的 保留bar-code1数据。 TextBox2中 保留bar-code2数据。
1当输入数据到文本框1时,按文本框上的输入1.我希望光标移动以聚焦在文本框2上。
2输入数据到Textbox2时,按文本框2上的Enter键。我想将数据插入数据库表。在我当前的代码中,我必须点击更新按钮来处理插入数据。
我不知道如何在textbox1上按Enter键来编码任何事件,textbox2
并且所有这些代码都应放在gridview中 - RowDatabond或代码在单独的
公共(私人)子
谢谢大家的帮助。大家好。
你可以用javascript / jQuery来做这个
由于你的问题与ASP.NET有关,它会更好在ASP.NET论坛中发布,网络专家可以为您提供帮助。
Develop vb.net code web form on vs.2005.
I want to control cursor focus on textbox in gridview. I have 2 textboxs on gridview. Textbox1 keep bar-code1 data. Textbox2 keep bar-code2 data.
1 When input data to Textbox1 press enter on textbox1.I want cursor move to focus on textbox2.
2 When input data to Textbox2 press Enter on textbox2. I want to insert data to database table. On my current code I must click on update button to process insert data.
I don't know how to code any event on press Enter on textbox1,textbox2
and all these code should place in gridview - RowDatabond or code on separate
Public (Private) Sub
Thank you everyone who help.Love you all
You can do it using javascript/JQuery
As your questions is related to ASP.NET, it would be better to post in ASP.NET Forum where web experts can help you.
这篇关于如何在gridview上控制光标。 Vb.net网页表单。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!