22.10.2009, 08:05 | #1 |
Участник
|
Solutions Monkey: How to set focus on the asp.net textbox in AxPopup form?
Источник: http://blogs.msdn.com/solutions/arch...opup-form.aspx
============== To set the focus include this method in your page that is opened in the popup window and call the method without control name in the page load event. For example to set the focus on txtCustAccount protected void Page_Load(object sender, EventArgs e) { SetFocus(txtCustAccount); } public static void SetFocus(Control control) { StringBuilder sb = new StringBuilder(); sb.Append("\r\n"); control.Page.RegisterClientScriptBlock("SetFocus", sb.ToString()); } ============== Источник: http://blogs.msdn.com/solutions/arch...opup-form.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|