Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajax control panel icon image not working from c# code-behind #160

Open
rhj4 opened this issue May 17, 2013 · 0 comments
Open

Ajax control panel icon image not working from c# code-behind #160

rhj4 opened this issue May 17, 2013 · 0 comments

Comments

@rhj4
Copy link

rhj4 commented May 17, 2013

I am using an AJAX Control panel and setting the Expand/Collapse icon images from C#, but the icon images are not being found. This code works fine in Chrome and FireFox, but it doesn't seem to work in Opera.

C# code:

        cpGeneral.Collapsed = true;
        cpGeneral.ClientState = "true";
        cpGeneral.ExpandedImage = URLExpand;
        cpGeneral.CollapsedImage = URLCollapse;

where the URL is a constant. The declaration of the Control panel is:

<asp:CollapsiblePanelExtender ID="cpGeneral" runat="server" TargetControlID="pnlGeneral"
BehaviorID="cpGeneral" TextLabelID="lblGeneral" SuppressPostBack="true" Collapsed="true"
ImageControlID="icnGeneral" ExpandControlID="pnlGeneralcp" CollapseControlID="pnlGeneralcp"
ExpandedText="Collapse" CollapsedText="Position/Organization">
/asp:CollapsiblePanelExtender
<asp:Panel ID="pnlGeneralcp" runat="server">
<asp:ImageButton ID="icnGeneral" runat="server" CssClass="cpIcon" OnClientClick=" checkPanel('General');return false;" />
<asp:Label ID="lblGeneral" runat="server" Text="Position/Organization " />
/asp:Panel
<%-- GENERAL PANEL DATA --%>
<asp:Panel ID="pnlGeneral" CssClass="flsaInputPanel" runat="server">
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant