Hi,
I'm making phone simulation with asp.net. It is like the screenshot links ( http://prntscr.com/6l4q8c ).
I used the control of Asp.net. I would like to be added to the location of the cursor on the new number.
But I do not know the position of the cursor. How do I find the cursor position in the box ?
Active block of code is the same as the following
if (txtNumber.Text.Length > 0)
{
txtNumber.Text = txtNumber.Text.Substring(0, txtNumber.Text.Length - 1);
}
else
{
txtNumber.Text = string.Empty;
}
Thank you for your help
soner celikPosted Mar 26, 2015, 3:50 AM
JavaScript discrepancies can occur. Accessed from the code section?
Pankaj Kumar ChoudharyPosted Mar 25, 2015, 11:59 AM
http://www.fourthbottle.com/2014/03/how-to-get-cursor-position-in-textbox.html
http://www.aspdotnet-suresh.com/2012/10/jquery-how-to-set-cursor-position-in.html