标签控件 [英] Tab Control

查看:60
本文介绍了标签控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,


在VB或Access中我会使用SetFocus方法在特定的

控件启动用户或将其移动到验证期间的特定控制。有没有办法在ASP.NET中执行此操作?


谢谢,Herb

Hello All,

In VB or Access I''d use the SetFocus method to start the user at a specific
control or move them to a specific control during validation. Is there a way
to do this in ASP.NET?

Thanks, Herb

推荐答案

" Herb Stull" < ST ***** @ nauticom.net> schrieb
"Herb Stull" <st*****@nauticom.net> schrieb
在VB或Access中,我将使用SetFocus方法在
特定控件下启动用户,或在
验证期间将其移动到特定控件。有没有办法在ASP.NET中执行此操作?
In VB or Access I''d use the SetFocus method to start the user at a
specific control or move them to a specific control during
validation. Is there a way to do this in ASP.NET?




我不知道ASP.NET但ASP.NET人员这样做:

microsoft.public.dotnet.framework.aspnet

-

Armin



I don''t know ASP.NET but the ASP.NET people do:
microsoft.public.dotnet.framework.aspnet
--
Armin


不要过分关注Armins的回答。

他没有钱买电视广告,所以他用这个新闻组告诉每个人他不知道什么的b $ b

VB.net webapplications并认为所有与

asp.net服务器有关的内容都是针对该新闻组的。


但是对于dotnet.VB.language主题。

我也找不到它。


我读过这个并测试标准是关注的重点网址和之后的

表示从1到y的tabindex。

我没有发现任何改变这种愚蠢行为的事情。


我有一个JavaScript,你可以把重点放在你想要的第一个

控件上。

May你知道吗,但如果不知道的话。

\\\\

< script language =" JavaScript">

document.all.item(" Textbox1")。focus()

< / script>

////


(如果你还不知道这个,那么将它放在apx

页面的最佳位置就在< / html>之前。标签)


但是我不能用VB设置或改变焦点。


如果找到VB.net解决方案,你永远不会知道在asp.net小组中,

但我认为这是最好的地方,你能告诉它吗?


还有一个公众微软新闻组webcontrols,也许他们知道,

但是如你所描述的那样控制它,你将需要vb.net代码。


我希望它可以帮助你一点点


Cor

Don''t pay too much attention to Armins answer.
He has no money for a television spot, so he uses this newsgroup to tell
everybody that he knows nothing from
VB.net webapplications and thinks that all what has something to do with an
asp.net server is for that newsgroup.

But to the dotnet.VB.language subject.
I cannot find it too.

I did read that and test that standaard is the focus on the url and after
that to the tabindexes from 1 to y.
I did found nothing to change this stupid behaviour.

I have a piece of JavaScript with what you can put the focus on the first
control that you want.
Maybe you know it already, but if not you have it.
\\\\
<script language="JavaScript">
document.all.item("Textbox1").focus()
</script>
////

(If you did not know this already, the best place to put this in the apx
page is right before the </html> tag)

But I cannot set or change the focus with VB.

If you found a VB.net solution, you never know maybe in the asp.net group,
but I think this is the best place for that, will you tell it than here.

There is also a public microsoft newsgroup webcontrols, maybe they know it,
but to control it like you described, you will need vb.net code.

I hope it helps you a little bit

Cor


这篇关于标签控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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