Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>So you just need to restructure your markup a little then. You need to place <code>imgTheatreLogo</code> inside the update panel. The triggers are actually handled by controls <strong>outside</strong> the update panel. <a href="http://msdn.microsoft.com/en-us/library/bb399001%28v=vs.100%29.aspx" rel="nofollow">See this documentation</a> for reference on exactly how the <code>UpdatePanel</code> works.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;div class="field-block button-height"&gt; &lt;label for="file" class="label"&gt; &lt;b&gt;Image&lt;/b&gt; (*.jpg) &lt;/label&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt; &lt;span class="input file"&gt; &lt;span class="file-text"&gt;&lt;/span&gt; &lt;span class="button compact"&gt;Select file&lt;/span&gt; &lt;asp:FileUpload ID="fuMovieLogo" runat="server" CssClass="file withClearFunctions /&gt;" &lt;/span&gt; &lt;br /&gt; &lt;small class="input-info"&gt;Max file size: 2MB&lt;/small&gt; &lt;asp:Button ID="btnPreview" runat="server" Text="Preview" onclick="btnPreview_Click" /&gt; &lt;asp:Button ID="btnCancelprev" runat="server" Text="Cancel" onclick="btnCancelprev_Click"/&gt; &lt;/td&gt; &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt; &lt;ContentTemplate&gt; &lt;td style="padding-left:10px"&gt; &lt;asp:Image ID="imgTheatreLogo" runat="server" Width="130px" /&gt; &lt;br /&gt; &lt;asp:Label ID="lblupdatelogo" runat="server" CssClass="lbl" Visible="false" Text="FDMovieUntitled.jpg"&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID="btnPreview" EventName="Click" /&gt; &lt;asp:AsyncPostBackTrigger ControlID="btnCancelprev" EventName="Click" /&gt; &lt;/Triggers&gt; &lt;/asp:UpdatePanel&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload