clipped from weblogs.asp.net
|
UpdatePanel cannot be used to upload files in ajax style from the very beginning. Eilon Lipton has written a blog post to explain the reason of that. As the post said, the two workarounds to resolve the problem are:
- Have a dedicated "Upload" button that does a regular postback instead of an async postback. You can achieve this using several techniques: Have the button be outside all UpdatePanels; have the button be the target of an UpdatePanel's PostBackTrigger; or call ScriptManager.RegisterPostBackControl() on it.
- Have a dedicated file upload page that doesn't have any UpdatePanels. Many web sites already do this anyway.
Monday, October 15, 2007 3:22 AM
by
Brandon Bloom