here my code
protected void LinkButton1_Click(object sender, EventArgs e)
{
if (FileUpload1.HasFile)
{ }
}
protected void Button2_Click(object sender, EventArgs e)
{
Panel1.Visible = true;
}
fileupload is working when without asp panel. my question is when i put a asp panel it doesnt work. i handle panel visible from code behind
thanks

Soft CornerRank #1,221 · 1.5K reputationPosted Mar 16, 2011, 11:17 PM EDT
The trick is to force the file upload control to perform a full postback, and we do this using triggers. Triggers allow the developer to specify what will cause partial and full postbacks. They must be defined within the
UpdatePanelbut outside of theContentTemplate. We want to create a trigger that will instruct the linkButton that you are using for the upload to perform a full postback.<
Triggers><asp:PostBackTrigger ControlID="LinkButton1" />
Triggers>Update Your Code with attached rar file...
Hope This will help you
Lasantha PWRank #8,839 · 215 reputationPosted Mar 17, 2011, 12:29 AM EDT
Soft CornerRank #1,221 · 1.5K reputationPosted Mar 17, 2011, 12:48 AM EDT
Updated Code :
Let me know if you still have any query :)
Suthish NairRank #92 · 22.8K reputationPosted Mar 17, 2011, 9:23 AM EDT