Hi all. I'd like to know if there's a way I can set a focus to a WebCurrencyEdit control without using javascript. Thanks in advance.
Hi,
If you want to set focus on initialization of page, then you may try to use property FocusOnInitialization=true. However, it may fail if browser on start will set focus not to browser content, but to its controls like address-field, or toolbar button. In this case nothing will help you to set focus.
Otherwise you need to use javascript. Example:
<igtxt:WebCurrencyEdit ID="WebCurrencyEdit1" runat="server"></igtxt:WebCurrencyEdit><input type="button" value="Focus" onclick="igedit_getById('<%=WebCurrencyEdit1.ClientID%>').focus()" />
Another thing, the focus functions properly in Firefox but not in IE