上载文件时的页面刷新 [英] page refreshment when the file is uploaded

查看:96
本文介绍了上载文件时的页面刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iam上传文件时,我的页面正在刷新.
即使我使用了updatepanel.

请帮助我

My page is refreshing when iam uploading the file.
Even though i used the updatepanel.

please help me

推荐答案

MSDN-控件与UpdatePanel控件不兼容 [ ^ ].

"以下ASP.NET控件与部分页面更新不兼容,因此不适用于UpdatePanel控件:
...
-FileUpload和HtmlInputFile控制何时将它们用作异步回发的一部分来上传文件.
...
要在UpdatePanel控件内使用FileUpload或HtmlInputFile控件,请将提交文件的回发控件设置为面板的PostBackTrigger控件. FileUpload和HtmlInputFile控件只能在回发场景中使用.
"
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.
"


伙计,您的问题不清楚 plz ,请发布您的代码但我想告诉您,我正在使用asp uploadfile,并且没有发生回发.我按如下方式使用它:

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:fileupload id="UploadedFile" runat="server" width="215px" xmlns:asp="#unknown" />


???因此,这不是问题 plz ,请使用您的代码支持我们

问候


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

regards


这篇关于上载文件时的页面刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆