模态弹出框上的下拉列表框上的VS 2008 ASP.NET 3.5 SetFocus [英] VS 2008 ASP.NET 3.5 SetFocus on dropdown listbox on modal popup

查看:68
本文介绍了模态弹出框上的下拉列表框上的VS 2008 ASP.NET 3.5 SetFocus的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

早上好.

我试图将焦点放在模式弹出窗口的下拉列表框上.我正在使用以下内容:

Good morning.

I am trying to set the focus on dropdown listbox on modal popup. I am using the following:

ddReasonEnrolling.Focus();

,但没有成功.

我做了一些研究,发现了一些JScript示例,但是我也没有实现这些示例的运气.我认为这将是一件非常简单的事情.我是Web编程的新手,但来自Windows开发背景.

有什么建议?谢谢WHEELS

without success.

I did some research and found some JScript examples, but I didn''t have any luck implementing those either. I thought this would be a pretty simple matter. I am new to web programming, but come from a Windows development background.

Any suggestions? Thank you, WHEELS

推荐答案

服务器端,您可以设置ListBox的 SelectedIndex 属性.
看一下这个: http://forums.asp.net/t/1343140.aspx [ ^ ]

问候
Espen Harlinn
Serverside you can set the SelectedIndex property of the ListBox.

Take a look at this: http://forums.asp.net/t/1343140.aspx[^] for one possible client side solution

regards
Espen Harlinn


我将SelectedIndex设置为0,然后设置为-1,但没有成功.
I set the SelectedIndex to 0 and then -1, without success.


这篇关于模态弹出框上的下拉列表框上的VS 2008 ASP.NET 3.5 SetFocus的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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