Save a Table web server controls dynamically added rows to the ViewState?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcontrolsvb' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Steve Schofield (VIP)
Is there a way to to save a Table web server controls dynamically added rows
to the ViewState? This would save dynamically recreating these rows on
postback?

* ----------------------------------------- *
* Steve Schofield
* Click here to reveal e-mail address
*
* http://www.aspfree.com
* http://www.mrcsharp.com
* ----------------------------------------- *

Reply to this message...
 
    
dave wanta (VIP)
if you have EnableViewState=true on your page, then they should be preserved
on postback.

if !(Page.IsPostBack )
{
// then create the table
}
else //the page has been posted
{
//don't need to create the table....
}

should do the trick...

hth,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.123aspx.com
The Largest ASP.NET Web Directory!
Find the latest ASP.NET resources --
Subscribe to our newsletter!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----- Original Message -----
From: "Steve Schofield" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, January 05, 2002 12:31 PM
Subject: [aspngcontrolsvb] Save a Table web server controls dynamically
added rows to the ViewState?

> Is there a way to to save a Table web server controls dynamically added
rows
[Original message clipped]

Reply to this message...
 
    
Dennis West
Question.. Dave, isn't viewstate normally enabled (the default) ?

----- Original Message -----
From: "dave wanta" <Click here to reveal e-mail address>
To: "aspngcontrolsvb" <Click here to reveal e-mail address>
Sent: Saturday, January 05, 2002 11:30 AM
Subject: [aspngcontrolsvb] Re: Save a Table web server controls dynamically
added rows to the ViewState?

> if you have EnableViewState=true on your page, then they should be
preserved
[Original message clipped]

Reply to this message...
 
 
System.Web.UI.Page




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com