Re: Datalist Dynamic Template Loading Problem
- From: Brock Allen <ballen@xxxxxxxxxxxxxxxxx>
- Date: Fri, 20 May 2005 10:52:53 -0700
1)If I only assign these templates if its not a post back, the datalist is blank when I click on the edit button in the datalist.
You need to recreate any and all dynamic controls upon every postback. You typically do this inside of CreateChildControls (a virtual from the Control base class). If you recreate the controls properly, then it will behave as if they were done statically in the ASPX file.
-Brock DevelopMentor http://staff.develop.com/ballen
.
- References:
- Datalist Dynamic Template Loading Problem
- From: mbailey
- Datalist Dynamic Template Loading Problem
- Prev by Date: Re: Question about strong-name dlls
- Next by Date: Re: Datalist Dynamic Template Loading Problem
- Previous by thread: Datalist Dynamic Template Loading Problem
- Next by thread: Re: Datalist Dynamic Template Loading Problem
- Index(es):