开发者

AsyncFileUpload Asynchronies Process?

开发者 https://www.devze.com 2023-04-04 03:04 出处:网络
Working with the asp.net AsyncFileUpload control. Is it an asynchronies process? I noticed when selecting a file, a postback is performed. Viewing in Fiddler, all script and external CSS pages again a

Working with the asp.net AsyncFileUpload control. Is it an asynchronies process? I noticed when selecting a file, a postback is performed. Viewing in Fiddler, all script and external CSS pages again are loaded. I have the control wrapped in an update panel.

I would not like the script and CSS pages to be loaded every time a file is uploaded. The code and Fiddler screen shot are posted.

AsyncFileUpload Asynchronies Process?

I would not like the script and CSS pages to be loaded every time a file is upload开发者_运维百科ed. The code and Fiddler screen shot are posted.

AsyncFileUpload Asynchronies Process?

No code has been put in the Code Behind page.

Thank you


I think this is normal behavior, MS Ajax (Update Panels) does a full PostBack to the server (Highly inefficient) and updates only the section that changed. You can either cache JS and CSS files so that at least you get 304 responses or use some other method to do this.

Perhaps putting the AsyncUpload control in an iframe will work better for you?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号