Ask a Question related to ASP.NET General, Design and Development.
-
Barry #1
LoadTemplate logic in DataList
I have a three-level drilldown report. The top level is a DataList. When
an item is selected, a new DataList is instantiated in the SelectedItem
template. I'd like to have the same thing happen when going to the third
level, but there's a catch. Depending on what's selected on the second
level, the template for the third level will be different. I have played
with the LoadTemplate method but cannot figure out how to apply my
condition from the second-level selection. As I understand loadtemplate,
it needs to be called from the Page_Init function, but I want to base
the template selection on the second-level DataList's ItemCommand
command name. This is usually grabbed from the DataList's
CommandEventArgs.
Am I missing something about this?
Thanks in advance.
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Barry Guest
-
Logic
I need some help. I have 2 loops. One to find a RadioButtonList in datagrid and second in Session("Answ"). I am trying to assing value from... -
ItemCommand not fired with LoadTemplate
Hello, I have extended a webserver control from the datagrid control. This datagrid adds an ItemTemplate dynamically via the LoadTemplate... -
Logic Error
Hi There I am developing a small Purchase Order application and have run into a small issue I have a two tables called PODetails and POHeader... -
logic help please
Hi, I need a sprite to check where its member's position is in a large nested list (which is a combination property and linear list). Here is the... -
LoadTemplate is very slow
Hey. Creating a Datagrid programmatically works fine, but there seems to be a huge performance hit when you use LoadTemplate- Dim MyTemplate As... -
Barry #2
LoadTemplate logic in DataList
I have a three-level drilldown report. The top level is a DataList. When
an item is selected, a new DataList is instantiated in the SelectedItem
template. I'd like to have the same thing happen when going to the third
level, but there's a catch. Depending on what's selected on the second
level, the template for the third level will be different. I have played
with the LoadTemplate method but cannot figure out how to apply my
condition from the second-level selection. As I understand loadtemplate,
it needs to be called from the Page_Init function, but I want to base
the template selection on the second-level DataList's ItemCommand
command name. This is usually grabbed from the DataList's
CommandEventArgs.
Am I missing something about this?
Thanks in advance.
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Barry Guest
-
Barry #3
Re: LoadTemplate logic in DataList
I should clarify that because the second level DataList is embedded
within the top-level's SelectedItemTemplate, it is late-bound, which
does not allow me to directly interact with it inside the Page_Init.
Barry <barrygilbert@nospam.com> wrote in message news:<#Y8#vlSVDHA.1832@TK2MSFTNGP09.phx.gbl>...> I have a three-level drilldown report. The top level is a DataList. When
> an item is selected, a new DataList is instantiated in the SelectedItem
> template. I'd like to have the same thing happen when going to the third
> level, but there's a catch. Depending on what's selected on the second
> level, the template for the third level will be different. I have played
> with the LoadTemplate method but cannot figure out how to apply my
> condition from the second-level selection. As I understand loadtemplate,
> it needs to be called from the Page_Init function, but I want to base
> the template selection on the second-level DataList's ItemCommand
> command name. This is usually grabbed from the DataList's
> CommandEventArgs.
>
> Am I missing something about this?
>
> Thanks in advance.
>
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!Barry Guest



Reply With Quote

