Wrox Programmer Forums
|
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 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
 
Old March 25th, 2004, 01:22 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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.





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





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