Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
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 March 2nd, 2004, 11:32 AM
Authorized User
 
Join Date: Feb 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mahulda
Default Textboxes made to work like spreadsheet cells

Hi Everybody

My Page consists of a grid of textboes.
Something like this

    TextBox11 TextBox12 TextBox13 TextBox14
    TextBox21 TextBox22 TextBox23 TextBox24
    TextBox31 TextBox32 TextBox33 TextBox34
    TextBox41 TextBox42 TextBox43 TextBox44

For Each of the textboxes, I have AutoPostback = True.
When the page posbacks the focus of the page lies with the first control in
the page.

I would like the focus to shift to the next TextBox each time the page PostBacks

e.g. Suppose I change the data of TextBox11 and press "Enter"
    The page reloads and I want the focus to be with TextBox21
    i.e. I should then be able to modify the contents of TextBox21 without having
         to click it first (somewhat similar to an Excel Spreadsheet).



Somebody Help Me

__________________
-.. -..
 
Old March 2nd, 2004, 11:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

You can enable SmartNavigation. However, this will only put the focus back to the control that had it when you posted to the server. So you would have to tab twice to get it to the next control.

I have had this problem before and there doesn't seem to be any way around it except to create your own client side script to do this for you. The drawback to this is that you get the irritating "Flash" of the page because of the double buffering. You also can only use it with Internet Explorer 5 or higher only.

J
 
Old March 2nd, 2004, 11:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
quote:Originally posted by katsarosj
 The drawback to this is that you get the irritating "Flash" of the page because of the double buffering.
J
Should be due to a lack of double buffering...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with the word processor that I made alexnichols Xcode 0 February 19th, 2008 03:44 PM
What to use for a home made notepad Apocolypse2005 Beginning VB 6 9 June 30th, 2006 11:01 AM
Unbound Field Made Simple? 12brich Crystal Reports 1 October 19th, 2004 11:10 AM
.NET-made COM deployed on NT4 - possible? techsavy VB.NET 2002/2003 Basics 0 September 9th, 2004 04:25 AM
Database changes made after Page_Load Radoslav ASP.NET 1.x and 2.0 Application Design 1 December 8th, 2003 10:44 AM





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