where do i get the "OneBasedPosition" for InsertText?

within in a webtextarea, how do you get the current cursor position in order to insert text with the [b]InsertText(OneBasedPosition as Integer, Text as String )?
thanks !

The framework doesn’t provide that information to you. Because all of your code runs on the server and is asynchronous there’s no way we can guarantee that the end-user hasn’t changed the cursor position by the time your instructions arrive.

Thanks Greg, is a simpler risk that I am willing to take, compare with not doing it… for example, if i want to insert a pair “{}”, the user will stop keying in data in order to click the inserting button, therefor that will not be critical.

And anyway what is the OneBasePosition? where do i get the value from?