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
| FAQ | Members List | 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 March 25th, 2004, 11:00 AM
Registered User
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Maintaining State in Tables

    I've got a "Stock order form" that I need to create for an ASP.Net application. What the client is looking for is basically a table that has 25 lines. There will be a 2 text boxes on each line, 1 for the user to supply part number and one for the user to supply quantity. This will allow them to place large list orders of parts. There will be 2 buttons at the bottom of the page, 1 to Update, which will take the user to a shopping cart that will list all the parts the user keyed in and let them place the order, and one that will list and validate the entries already made and add another 25 boxes so that the user can continue to add parts to the stock order.

    I've figured out how to do a dynamic table in ASP.Net, however, the issue I've run into is that it seems that the table does not maintain state between postbacks. Also, I've looked at using a data grid, but I'm a little confused on how to put in blank text boxes into the grid.

            Any help would be greatly appreciated,

            Michael Schnell
  #2 (permalink)  
Old March 25th, 2004, 01:22 PM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

The dynamic table should maintain state... You are using the Table WebControl, correct? Is the EnableViewState set to true? Also, you could put blank textboxes into a grid using the TemplateColumn type for the Column. This allows you to put whatever in the grid.

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
Maintaining state in a TreeView Nick710 ASP.NET 2.0 Professional 3 December 23rd, 2005 01:58 PM
maintaining session state in C# grs General .NET 0 January 13th, 2005 03:46 AM

All times are GMT -4. The time now is 05:29 PM.

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