May 20, 2011, 10:37 PM
[CLOSED] File Dialog on Image Click
I have this setup:
1) File Upload Dialog does not open
2) IE displays a loading green progress bar at the bottom of the page, reminiscent of the postback behaviors AJAX was supposed to do away with. I'm guessing it's something about the way I set up my click event, but if this can be avoided please let me know.
Thanks!
- jwf
<script runat="server">
[DirectMethod]
public void Banner_Click(object sender, DirectEventArgs e)
{
FileUpload1.Show();
}
</script>
<ext:Panel runat="server" ID="tabBanner" Title="Banner" Height="300" Padding="5">
<Items>
<ext:Image runat="server" ID="imgBanner" ImageUrl="~/Images/BannerItemBlank.png" StyleSpec="cursor: pointer;">
<DirectEvents>
<Click OnEvent="Banner_Click" />
</DirectEvents>
</ext:Image>
</Items>
</ext:Panel>
<ext:FileUploadField runat="server" ID="FileUpload1" Name="file" />
I have two issues.1) File Upload Dialog does not open
2) IE displays a loading green progress bar at the bottom of the page, reminiscent of the postback behaviors AJAX was supposed to do away with. I'm guessing it's something about the way I set up my click event, but if this can be avoided please let me know.
Thanks!
- jwf
Last edited by Daniil; May 31, 2011 at 10:40 AM.
Reason: [CLOSED]