无法专注于asp.net中tab选项卡中的控件 [英] can't focus on controls in tab container in asp.net

查看:68
本文介绍了无法专注于asp.net中tab选项卡中的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目包含一个带有多个标签的ajax标签容器。每个选项卡包含不同的控件我想在上一个文本框中的textchange事件之后关注一个文本框。但是当在前一个文本框中输入数据后回发时,第二个文本框没有聚焦,但是当前选项卡会聚焦...请帮我解决这个问题..

My project contains one ajax tab container with several tabs. Each tab contains different controls. I want to focus a textbox after the textchange event in the previous textbox. but when postback after data entering in the previous textbox the second textbox didnt focus, but the current tab get focused... pls help me to solve this..

推荐答案

onchange 事件结尾处添加了以下代码。

Added the below code at end of the onchange event.
ScriptManager.RegisterStartupScript(Page, Page.GetType, "ChangeEvent", "


('#textboxID')。focus(),True)
('#textboxID').focus()", True)


这篇关于无法专注于asp.net中tab选项卡中的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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