Detta görs i klientsidan, dvs med javascript. Efter att ha googlat lite hittade jag följande:
In some browsers, including IE and FF, the trick is to set the value of the
element after setting the cursor. The cursor will then be moved with it as
the new value is written and end up at the end...
tt.focus(); tt.value = tt.value;
Otherwise, you will need to manipulate text selection ranges, which is a
pain to do crossbrowser.
Det beror lite på om du kör med <asp:TextBox> eller en vanlig <input>. Kör du med en <asp:TextBox> så måste du ta reda på vilket id kontrollen har ute i klienten och det görs via TextBoxNamnet.ClientID.