ASP.NET中选项卡索引的基类 [英] Base Class for Tab Index in ASP.NET

查看:104
本文介绍了ASP.NET中选项卡索引的基类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个很好的通用方法来设置ASP.NET应用程序(使用VB.NET)的页面中的许多元素的Tab索引。结果我想知道是否有一个控制实现继承自TabIndex属性的基类,所以我可以生成以下代码:

  Public Sub GenerateTabIndex(Order List(TabIndexBaseClass))
...
Blah Blah Blah code ...
End Sub

感谢您的帮助。

注意我无法使用视图 - >制表顺序;不幸的是。

解决方案

我会在这里回答我自己的问题,因为我刚发现它。



使用WebControl类;它有内置的TabIndex方法。我试图使用Control类。


I'm trying to create a nice generic way of setting the tab index on many elements in a page of an ASP.NET app (using VB.NET). As a result I was wondering if there was a base class that controls implementing the TabIndex property inherited from so I could generate the following code:

Public Sub GenerateTabIndex(order as List(Of TabIndexBaseClass))
   ...
   Blah Blah Blah code...
End Sub

Thanks for the help.

N.B. I cannot use View -> Tab Order; unfortunately.

解决方案

I'm going to answer my own question here since I just found it.

Use the WebControl class; it has the TabIndex Method build in. I was attempting to use the Control class.

这篇关于ASP.NET中选项卡索引的基类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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