Ask a Question related to ASP.NET General, Design and Development.
-
bid #1
hoe to prevent a control from being executed
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" />
bid Guest
-
Can a .as be executed in CF8
IIRC you can use the import and #include directives using cfformitem type="script" and/or cfsavecontent. Though I do not know if either is... -
Prevent certain tags inside custom control
Hi, I'm not sure if I can ask here as it may be a visual studio specific question, but maybe Is it possible to add a constraint to a custom... -
ASPX not executed
Hi, I'm trying to execute ASPX page on a test IIS Server. Instead of executing it shows the ASPX file on screen. What's happening ? -
Prevent 'Chr(13) + Chr(10)' from Being Executed in String
I have the following code in my web page. Dim tmpReplace As String 'Giving tmpReplace the value from the textbox on the webform. tmpReplace =... -
how to prevent prevent .so-calling routine to crash from segfaults in .so
Hi, Guys I am stuck with a problem and need some help. Platform : Linux(RedHat 7.3) Problem Area : Dynamic Shared Object Libraries, POSIX... -
Srinivasa Reddy K Ganji #2
Re: hoe to prevent a control from being executed
Bid,
One solution is to put the control you want to hide within a panel control
and set the visbilty of the panel control to false.
Reddy
"bid" <bidllc@hotmail.com> wrote in message
news:000201c34ec8$4ec0f4c0$a101280a@phx.gbl...> 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" />
Srinivasa Reddy K Ganji Guest



Reply With Quote

