473,511 Members | 14,393 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Set Cursor at last in textbox in web form Asp.net

2 New Member
Hi,

I am using web application and I want to set the cursor position at last in Textbox, please anyone help me. the Selectionstart method doesn't work in web application, so please give me right way to solve it.
Sep 12 '13 #1
3 4046
CroCrew
564 Recognized Expert Contributor
We will need to know if your coding in VB or C#?
Sep 15 '13 #2
pod
298 Contributor
sometimes a bit javascript code at the end of the webform can do it:
Expand|Select|Wrap|Line Numbers
  1.  
  2. document.getElementById("elementId").focus();
  3.  
  4.  
Sep 19 '13 #3
VickySharma
2 New Member
Thank u so much pod for replying me I will use your code in my project.. thanks
Feb 8 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1557
by: Matthew | last post by:
Hi, how can I create a <A HREF'ed> image that, with an onclick event will cause the cursor to jump into a particularly assigned text form input field?
1
1534
by: Merlin | last post by:
Hi there, I would like to set the cursor upon loading a page on a text field which has already been populated. The problem with this code: <script language="JavaScript1.1"...
2
5865
by: Xam | last post by:
Hello Everybody Can you let me know of a javascript/dom routine that will automatically put the flashing cursor in the first text box in my form so that it is ready for entry rather than the...
1
6687
by: MissiMaths | last post by:
I don't know if this is a stupid question but I have a textbox in a form and the text entered into it is only recognised if it has been tabbed or returned out of. Is there anyway to get the cursor...
1
2041
by: jung wook seo | last post by:
Hi~ all How?? please let me know~ Thanks in advance~ *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
1
3710
by: Asad | last post by:
I really really really need to put the cursor in a text box at onload. I can't figure out how to do this in ASP.NET. Anyone? In ASP.NET, javascript, anything ...
2
2129
by: Gene Hubert | last post by:
For a string that is being edited in a textbox, is there a way to find the position of the edit cursor in the string being edited? For example, it would be 0 or 1 at the beginning of a string and...
9
4853
by: DotNetShadow | last post by:
Hi Guys, I have been having this problem recently where I have a form with a textbox and button, if in the button event I have the following: Private Sub Button1_Click(ByVal sender As...
2
2288
by: Jassim Rahma | last post by:
how can point the cursor in the textbox after the last character?
7
2773
by: deepikashalini | last post by:
im using javascript for loading the login screen. in form load i focus the cursor in username textbox.
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.