B
bid
I have 2 controls on this page as shown below. The first
is a datalist control which contains links to the
particular image gallery (second control) I want to
display. However I only want the datalist to be used
when the page is *not* posted back. I know how to hide
the datalist control and prevent the databinding in the
code behind from being called if the page is not posted
back, but because the control contains code that is
executed at runtime is it not possible to ignore the
control?? Does this make sense?
Many Thanks,
BID
<asp:datalist id=dlVendors runat="server" CssClass="text">
<ItemTemplate>
<%# Container.DataItem("name")%>
<asp:LinkButton ID="lnkbuttonGallery"
CommandName="showGallery" CommandArgument='<%#
Container.DataItem("galleryFolder")%>' Runat="server"
onCommand="linkButton_command">View
Gallery</asp:linkbutton><br />
<ul><li><%# Container.DataItem
("description")%></li></ul>
</ItemTemplate>
</asp:datalist><BR>
<rebex:ImageGallery id="imgGallery" runat="server" />
is a datalist control which contains links to the
particular image gallery (second control) I want to
display. However I only want the datalist to be used
when the page is *not* posted back. I know how to hide
the datalist control and prevent the databinding in the
code behind from being called if the page is not posted
back, but because the control contains code that is
executed at runtime is it not possible to ignore the
control?? Does this make sense?
Many Thanks,
BID
<asp:datalist id=dlVendors runat="server" CssClass="text">
<ItemTemplate>
<%# Container.DataItem("name")%>
<asp:LinkButton ID="lnkbuttonGallery"
CommandName="showGallery" CommandArgument='<%#
Container.DataItem("galleryFolder")%>' Runat="server"
onCommand="linkButton_command">View
Gallery</asp:linkbutton><br />
<ul><li><%# Container.DataItem
("description")%></li></ul>
</ItemTemplate>
</asp:datalist><BR>
<rebex:ImageGallery id="imgGallery" runat="server" />