Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Asp.net Transmit File in a Ajax Update Panel

$
0
0

i have a menu in an update panel which shows update progress on a menu click, one of the menu item allows the user to download a image. I figured out from this post that there are some securituy issues which does not allow to transmit a file for a control event which is in a update panel, so either i need to remove the menu from the update panel or i need to write this line of code on the postback.

ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(MyMenu);

the second one seems to work fine, but i need to run that line of code for only the selected menu item like below

if(MyMenu.Items[2].selected){ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(MyMenu);}

but this does not seem to work, the menu item selected is always false. can some one suggest me how can i tackle this situation. i just want to regeister postback when a paticular menu item is selected.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>