页面加载时我只有一个文本框,因此必须将重点放在文本框的右侧. [英] I have one textbox when page is loading cusror must focus at the right hand side of the textbox .And Needful information appriciate

查看:99
本文介绍了页面加载时我只有一个文本框,因此必须将重点放在文本框的右侧.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

页面加载时我只有一个文本框,因此必须将焦点放在文本框的右侧.并且需要的信息适用于

I have one textbox when page is loading cusror must focus at the right hand side of the textbox .And Needful information appriciate

推荐答案

我不确定,但设置阿拉伯语的文化可能会有所帮助.但这可能会导致其他问题.

为什么要使用这种功能?

我能想到的一种解决方法是-用空白填充TextBox.您必须确定所需的空格数.但同样,文本将在这些空格之后开始.因此,您可能需要根据自己的需要处理onkeypress事件以将其删除.

如果您对问题添加更多细节(通过选择改善问题"),则可能会获得更好的帮助.
I am not sure but setting the culture to Arabic might just help. But then it may cause other problems.

Why do you want such functionality?

One work around I can think of is - fill the TextBox with blank spaces. You have to determine the number of spaces required. But again the text will start after those spaces. So you may have to handle onkeypress event to remove those, based on your requirement.

You may get better help if you add more specifics to your question (by selecting ''Improve Question'').


<asp:TextBox ID="TextBox2" style="text-align:right;" Text=""  runat="server"></asp:TextBox>



TextBox2.Focus();在页面加载中或任何您希望在文本框中成为焦点的事件.



TextBox2.Focus(); in page load or any event when you want the focus in textbox.


这篇关于页面加载时我只有一个文本框,因此必须将重点放在文本框的右侧.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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