<script type="text/javascript"> function setCursorPosition(elem, pos) { if (elem != null) { if (elem.createTextRange) { var range = elem.createTextRange(); range.move('character', caretPos); range.select(); } else { if (elem.selectionStart) { elem.focus(); elem.setSelectionRange(caretPos, caretPos); } else elem.focus(); } } } </script>
<asp:Button ID="btnEdit" class="buttonsMainteUN" runat="server" Text="Edit" ToolTip="Edit user account details" PostBackUrl="~/EditUser.aspx" OnClientCilck="var elem = document.getElementById('txtLastName'); setCursorPosition(elem,elem.value.length);"/>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)