Hi All
We are facing the problem of file upload control with the update panel
To solve this we need to do following thngs
We are facing the problem of file upload control with the update panel
To solve this we need to do following thngs
<form id="form1" runat="server"> <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:UpdatePanel ID="Updatepanel1" runat="server"> <Triggers> <asp:PostBackTrigger ControlID="Button1" /> </Triggers> <ContentTemplate> <p> <asp:Button ID="Button1" runat="server" Text="Upload" OnClick="Button1_Click" /></p> <p> <asp:Label ID="Label1" runat="server"></asp:Label></p> </ContentTemplate> </asp:UpdatePanel> </form>
It is working with below texts
Page.Form.Attributes.Add("enctype", "multipart/form-data");
No comments:
Post a Comment