-
Nov 20th, 2013, 05:03 AM
#1
Thread Starter
Frenzied Member
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!
-
Nov 21st, 2013, 05:51 PM
#2
Re: Dropdown not asyncpostback in update panel?
Originally Posted by Jigabyte
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|