Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.

  #2 (permalink)  
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.
  #3 (permalink)  
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.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:20 PM.


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