在Asp.NET编程时,如果你指定一个Label控件的 AssociatedControlID 属性,那么在解析该页面时,Label控件不会被解析成默认的<Span>元素,而是被解析成<Lable for ="这里是AssociateControlID指定的控件ID" >。这样,当你在页面上单击Label时,对应的控件会自动得到焦点。

相关文章:

  • 2021-11-05
  • 2022-01-18
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案