title: Inserting text in TextBox at cursor
body: <p>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[&lt;<strong>cursor here</strong>>]" 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[&lt;<strong>cursor here</strong>>]]". </p>
  
  <p>How is this handled. Any simple code please..</p>
  
  <p>Thanks in advance </p>