Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have Update panel in Master page.But i cant access file upload control in aspx file.


Structure:

Masterfile

XML
<div id="content" class="shell">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

                </asp:ContentPlaceHolder>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>


XML
File.aspx (it uses master file):

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


XML
<asp:UpdatePanel ID="RegUpdatePanel" runat="server">
                      <ContentTemplate>


XML
<FileUpload ID="flUpload" runat="server" Width="148px" />
<triggers>
                            <asp:AsyncPostBackTrigger ControlID="btSubmit" EventName="Click" />
                            <asp:PostBackTrigger ControlID="lnkTemplate" />
                                 <asp:AsyncPostBackTrigger ControlID="btSubmit" />
                    </triggers>
 
                  
                    

if i use this code FileUpload control is not accessible

Pls help
Posted

1 solution

Try using PostBackTrigger instead of AsyncPostBackTrigger

C#
<asp:postbacktrigger controlid="btSubmit" />
 
Share this answer
 
v2
Comments
Mohan_V 25-Apr-13 0:36am    
I tried that also, Still it shows error
vijay__p 25-Apr-13 6:42am    
What is the error ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900