海友我在Asp.Net更新面板上有一个问题 [英] Hai Friends I Have A Question On Asp.Net Update Panel

查看:113
本文介绍了海友我在Asp.Net更新面板上有一个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么tabindex在更新面板中不起作用?当updatepanel部分postabcks(例如我有一个在updatepanel中自动回放的下拉列表)时,选项卡索引被破坏,tab键不会将你标记到下一个控件上。



和tabindex将转到第一个tabindex如何解决



thankx

Why does the tabindex not work in an update panel? When the updatepanel partially postabcks (e.g. I have a dropdownlist that autopostbacks in the updatepanel) the tab index is broken the the tab key doesnt tab you onto the next control.

and tabindex wil goto first tabindex how to solve

thankx

推荐答案

DropDownList comboboxcountry =(DropDownList)this .FindControl(comboboxcountry);

ScriptManager1.SetFocus(comboboxcountry);



在selecte index中写上面的代码改变了autopost返回的位置是真的
DropDownList comboboxcountry= (DropDownList)this.FindControl("comboboxcountry");
ScriptManager1.SetFocus(comboboxcountry);

write the above code in selecte index changed where autopost back is true


DropDownList comboboxcountry =(DropDownList)this.FindControl(comboboxcountry);

ScriptManager1.SetFocus(comboboxcountry);



在选择索引中将上述代码写入更改,其中autopost返回为真
DropDownList comboboxcountry= (DropDownList)this.FindControl("comboboxcountry");
ScriptManager1.SetFocus(comboboxcountry);

write the above code in selecte index changed where autopost back is true


这篇关于海友我在Asp.Net更新面板上有一个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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