Insert text at cursor position...still

M

Matt Tapia

Is there a way to insert text into a multi-row textbox where the cursor
position is at in the multi-row textbox?

Just wondering..I was told I could use the SelectedText property however I
get this error:

'SelectedText' is not a member of 'System.Web.UI.WebControls.TextBox'.


Thanks!
 
G

General Protection Fault

Matt said:
Is there a way to insert text into a multi-row textbox where the cursor
position is at in the multi-row textbox?

Just wondering..I was told I could use the SelectedText property however I
get this error:

'SelectedText' is not a member of 'System.Web.UI.WebControls.TextBox'.

The TextBox is a server-side control, and text selection information
isn't posted to the web server. You'd have to work something out with
client-side scripting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top