Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 2nd, 2003, 10:37 PM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to locate cursor after postback

Hi, Everyone.
I am making a aspx page, I used the autopostback in the page, but when the postback is finished, the cursor is set to the address bar, so I have to reclick the cursor to the next textbox.
I want to know whether it's possible to locate the cursor on the current place after postback.
If it is possible, How could I do this.
Thanks.

 
Old July 3rd, 2003, 02:33 AM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

I have an idea:
1. Add HiddenTextBox from HTML tags in ur page & set the value to 0
2. Make ur HiddenTextBox Run as Server Constol
3. in ur post back set HiddenTextBox's value to 1
    if(Page.IsPostBack)
        HiddenTextBox.value = 1
4. in ur body add attribute onload as follow
    onload="FORM_ID.elements['HiddenTextBox_ID'].value() > 0 : NextTextBox.focus() ? ''

I hope this will help u

Always:),
Hovik Melkomian.
 
Old July 4th, 2003, 01:31 AM
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your post.
I think it's a good idea.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Magnetic Cursor - Target Area Cursor? gcarcass .NET Framework 2.0 1 May 5th, 2008 07:20 AM
cant locate file during debug cprogrammer C++ Programming 0 October 10th, 2007 10:38 PM
locate winodws form in right place Medes Word VBA 1 June 5th, 2006 03:52 PM
can't locate Configuration Manager zoltac007 ASP.NET 2.0 Basics 3 May 30th, 2006 02:28 PM
Would like to locate errata torrent XML 1 June 3rd, 2003 03:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.