Results 1 to 2 of 2

Thread: Dropdown not asyncpostback in update panel?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Dropdown not asyncpostback in update panel?

    Hi All,

    I've got a dropdown control in an update panel and only want it to asyncpostback and assign an image url to an image control but nothing happens:-

    Code:
                                                <asp:UpdatePanel ID="UP_ToolSelector" runat="server" UpdateMode="Conditional">    
                                                    <ContentTemplate>
                                                    <div id="divCleanToolsRight" class="divCleanToolsRight">
                                                        <asp:Label ID="lblCleanTools" runat="server" cssclass="lblCleanTools" Text="Cleaning Tools"></asp:Label>
                                                        <br />
                                                        <asp:DropDownList ID="cboPreview" runat="server" CssClass="cboPreview" ClientIDMode="Static"> </asp:DropDownList>
                                                        <br />
                                                        <div id="divPreview" style="width:100px; height: 100px;">
                                                            <asp:Image ID="imgPreview" runat="server" cssclass="imgPreview" ImageUrl="~/Symbols/Blank.jpg" BorderStyle="Solid" BorderWidth="1px"/>
                                                        </div>
                                                        <div id="divBin" class="divBin">
                                                            <asp:Image ID="imgBin" runat="server" cssclass="imgBin" ImageUrl="~/images/bin.png"/>
                                                        </div>
                                                    </div>
                                                    </ContentTemplate>
                                                    <Triggers>
                                                        <asp:AsyncPostBackTrigger ControlID="cboPreview" EventName="SelectedIndexChanged" />
                                                    </Triggers>
                                                </asp:UpdatePanel>
    Any help please,

    Jiggy!

  2. #2
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: Dropdown not asyncpostback in update panel?

    Quote Originally Posted by Jigabyte View Post
    Hi All,

    I've got a dropdown control in an update panel and only want it to asyncpostback and assign an image url to an image control but nothing happens:-

    Code:
                                                <asp:UpdatePanel ID="UP_ToolSelector" runat="server" UpdateMode="Conditional">    
                                                    <ContentTemplate>
                                                    <div id="divCleanToolsRight" class="divCleanToolsRight">
                                                        <asp:Label ID="lblCleanTools" runat="server" cssclass="lblCleanTools" Text="Cleaning Tools"></asp:Label>
                                                        <br />
                                                        <asp:DropDownList ID="cboPreview" runat="server" CssClass="cboPreview" ClientIDMode="Static"> </asp:DropDownList>
                                                        <br />
                                                        <div id="divPreview" style="width:100px; height: 100px;">
                                                            <asp:Image ID="imgPreview" runat="server" cssclass="imgPreview" ImageUrl="~/Symbols/Blank.jpg" BorderStyle="Solid" BorderWidth="1px"/>
                                                        </div>
                                                        <div id="divBin" class="divBin">
                                                            <asp:Image ID="imgBin" runat="server" cssclass="imgBin" ImageUrl="~/images/bin.png"/>
                                                        </div>
                                                    </div>
                                                    </ContentTemplate>
                                                    <Triggers>
                                                        <asp:AsyncPostBackTrigger ControlID="cboPreview" EventName="SelectedIndexChanged" />
                                                    </Triggers>
                                                </asp:UpdatePanel>
    Any help please,

    Jiggy!
    This should be moved to the ASP.NET forum.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width