fileupload control in UpdatePanel

Posted by Nkkppp under ASP.NET AJAX on 9/25/2012 | Points: 10 | Views : 2366 | Status : [Member] | Replies : 8
Hi All,

Can you please let me know what is the use of fileupload control in UpdatePanel because normally FileUpload control does not work with partial postback which is done in UpdatePanel and it requires a full postback.

So in order to make this work we use Postback trigger and i would like to know by using this will the whole page be postedback or not.

If no, then using fileupload control in UpdatePanel is useful.

If no, can u please explain how can i achieve partial postback without using Ajaxtoolkit controls.

Thanks.

Prathap.




Responses

Posted by: Jayakumars on: 9/27/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

refer this

http://www.aspsnippets.com/Articles/Using-FileUpload-Control-inside-ASP.Net-AJAX-UpdatePanel-Control.aspx



Mark as Answer if its helpful to you

Nkkppp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 9/27/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
Please mark as answer if it helpful to you.

Mark as Answer if its helpful to you

Nkkppp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 9/27/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Hi.. u can use below code

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate >
// Your File upload control here
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="Button1" /> // Submit Button ID
</Triggers>
</asp:UpdatePanel>


Nkkppp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
Thanq Ranjeet

Thanks & Regards
Hari

Nkkppp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
see this links
http://asp.net-tutorials.com/controls/file-upload-control/
http://www.codeproject.com/Articles/1757/File-Upload-with-ASP-NET

Thanks & Regards
Hari

Nkkppp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hariinakoti on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
Please Mark As Answer.If it is helpful to u.

Thanks & Regards
Hari

Nkkppp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nkkppp on: 9/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi All,

I would like to clarify that I am aware of how to use Fileuploadcontrol in Updatepanel. I just want to know whether the whole page will be posted back or else only the fileupload control.

Just clarify the above doubt.If it is posting back the whole page then there is no use of using AJAX updatepanel with fileupload control.

Thanks.

Prathap.

Nkkppp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vinay13mar on: 10/14/2012 [Member] Starter | Points: 25

Up
0
Down
check the link
http://dotnetpools.com/Article/ArticleDetiail/?articleId=5&title=Fileupload%20Control%20In%20Asp.net

Nkkppp, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response