如何在更新面板中设置ASP标签控件的焦点 [英] How do I set focus on ASP label control in update panel

查看:81
本文介绍了如何在更新面板中设置ASP标签控件的焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将注意力集中在更新面板上的asp标签控件上,但它适用于我的PLZ帮助





感谢提前



我的尝试:



i我正在使用这种方法ajax脚本管理器



ScriptManager.GetCurrent(页面).SetFocus(lblFocus)

解决方案

按照MSDN文档,你不能。

Quote:

您可以将重点放在以下类型的控件上:



  • 按钮,LinkBut​​ton和ImageButton控件
  • CheckBox控件
  • DropDownList控件
  • FileUpload控件
  • HyperLink控件
  • ListBox控件
  • RadioButton控件
  • TextBox控件




来源:如何:专注于ASP.NET Web服务器控件 [ ^ ]


i am trying to set focus on asp label control in update panel but it dosent work for me plz help


thanks in advance

What I have tried:

i am using this method of ajax script manager

ScriptManager.GetCurrent(Page).SetFocus(lblFocus)

解决方案

As per MSDN documentation, you can't.

Quote:

You can put the focus on the following types of controls:


  • Button, LinkButton, and ImageButton controls
  • CheckBox control
  • DropDownList control
  • FileUpload control
  • HyperLink control
  • ListBox control
  • RadioButton control
  • TextBox control


Source: How to: Set Focus on ASP.NET Web Server Controls[^]


这篇关于如何在更新面板中设置ASP标签控件的焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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