Inserting text in TextBox at cursor
Posted
by Anil
on Stack Overflow
See other posts from Stack Overflow
or by Anil
Published on 2010-06-04T06:41:38Z
Indexed on
2010/06/04
6:49 UTC
Read the original article
Hit count: 349
c#
Hi all
I have a textbox in aspx page in which the user enters text. Now when user clicks on a button called "Sin" the textbox should show "Sin[]" and the cursor has to be placed in between brackets.Like as follows "Sin[<cursor here>]" Now when the user clicks on some other button say "Cos" the textbox text should show "Sin[Cos[]]" and the cursor has be placed between the brackets of Cos as follows: "Sin[Cos[<cursor here>]]".
How is this handled. Any simple code please..
Thanks in advance
© Stack Overflow or respective owner