Click here to Skip to main content
15,891,684 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My page is refreshing when iam uploading the file.
Even though i used the updatepanel.

please help me
Posted
Updated 30-Mar-12 0:39am
v2
Comments
Xeshan Ahmed 30-Mar-12 6:57am    
share your code
K.Mohamed Sujaludeen 30-Mar-12 8:14am    
Share your code. here

MSDN - Controls that are not Compatible with UpdatePanel Controls[^].

"The following ASP.NET controls are not compatible with partial-page updates, and are therefore not designed to work inside an UpdatePanel control:
...
- FileUpload and HtmlInputFile controls when they are used to upload files as part of an asynchronous postback.
...
To use a FileUpload or HtmlInputFile control inside an UpdatePanel control, set the postback control that submits the file to be a PostBackTrigger control for the panel. The FileUpload and HtmlInputFile control can be used only in postback scenarios.
"
 
Share this answer
 
Comments
Shahin Khorshidnia 30-Mar-12 15:46pm    
My +5
fjdiewornncalwe 30-Mar-12 16:09pm    
Thanks, Shahin.
ProEnggSoft 30-Mar-12 19:43pm    
+5
fjdiewornncalwe 2-Apr-12 10:24am    
Thanks
Mohamed Mitwalli 2-Apr-12 13:25pm    
5
Look man, your question not clear plzplease post your piece of code but I want to tell you that I am using the asp uploadfile and no post back happened. I am using it as follows:

ASP.NET
<asp:fileupload id="UploadedFile" runat="server" width="215px" xmlns:asp="#unknown" />

??? So this is not the problem plzplease support us with your code

regards
 
Share this answer
 
v2
Comments
fjdiewornncalwe 30-Mar-12 15:22pm    
Please don't use text speak in your answers. There are a lot of old farts around here who really just don't like that. :) Cheers.
Shahin Khorshidnia 30-Mar-12 15:46pm    
Yes Marcus, I want to kill myself :D

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