Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am unable to insert the images to the database if i place fileupload inside the update panel, can any one help me asap.
Posted
Comments
shabadiveda 21-Jun-12 5:41am    
thanx for the reply

Controls that Are Not Compatible with UpdatePanel Controls
The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported inside an UpdatePanel control:

1)TreeView and Menu controls.

2)Web Parts controls. For more information, see ASP.NET Web Parts Controls.

3)FileUpload controls when they are used to upload files as part of an asynchronous postback.

4)GridView and DetailsView controls when their EnableSortingAndPagingCallbacks property is set to true. The default is false.

5)Login, PasswordRecovery, ChangePassword, and CreateUserWizard controls whose contents have not been converted to editable templates.

6)The Substitution control.

7)Validation controls, which includes the BaseCompareValidator, BaseValidator, CompareValidator, CustomValidator, RangeValidator, RegularExpressionValidator, RequiredFieldValidator, and ValidationSummary control.

Ref: http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx[^]

http://forums.asp.net/t/1415400.aspx/1[^]
 
Share this answer
 
v2
you use Trigger for Upload the Image.

XML
<asp:ScriptManager ID="sc1" runat="server"></asp:ScriptManager>
 <asp:UpdatePanel ID="u1" runat="server">
 <ContentTemplate>
// content of your page

</ContentTemplate>
<Triggers>
    <asp:PostBackTrigger   ControlID="Button1" />

</Triggers>
</asp:UpdatePanel>


Button1 is submit button when you click after the Upload image.

this will help you.
 
Share this answer
 
v2

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



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