Thanks, I got it working now, but a new problem came up.
The custom WebControl that creates an array of textboxes (naming them
dynamically), for example:
<INPUT id="c0r0" type="text" runat=server value="Item A" ><INPUT id="c1r0"
type="text" runat=server value="100" ><br>
Now let's say the user changed the value of c1r0 to from '100' to '200' and
clicks an 'Update' button. In the Page_Load postback, none of the controls
are accessible.
How can I access the value of the text input element c1r0?
Or do you think I'm going about this the wrong way?
Thanks!
Dan
"Teemu Keiski" <> wrote in message
news:...
> Hi,
>
> you would need to develop a state management mechanism for the collection.
> It means implementing viewstate saving, loading and tracking for the
> collection (which consists of simlar functionality for collection items)
> using IStateManager interface. I've written an example of such at ASp.NET
> Forums, if you want to check it out:
>
> http://www.asp.net/Forums/ShowPost.a...&PostID=225520
>
> --
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsiders member
> ASP.NET Forum Moderator, AspAlliance Columnist
> http://blogs.aspadvice.com/joteke
>
>
>
>
> "kw" <> wrote in message
> news:%...
> > The following WebControl contains a collection. On Page PostBack, the
> > collection is lost. I'm not sure how to persist this. Any ideas?
> >
> > public class Grid: System.Web.UI.WebControls.WebControl
> > {
> > ...
> > public ColumnCollection Columns{get{...}}
> > ...
> > }
> > public class ColumnCollection : IDictionary, ICollection, IEnumerable,
> > ICloneable{...}
> >
> >
> >
> >
>
>