Why don't file uploads work during async postbacks?
为什么异步回送时不能使用文件上传?
Some types of postbacks might fail when using a GET request.
使用GET要求时,某些回传类型可能会失败。
In general, postbacks occur in one of two ways: through a Submit button or through a script.
通常,postback发生在下面两种方式之一:Submit按钮激发或通过script激发。
Server events occur after postbacks, and they are handled in the server-side code that you write for the page.
伺服器事件会在回传后发生,并且会在为网页所撰写的伺服器端程序码中处理这些事件。
This becomes particularly painful when you use data-bound controls, all of which use view state to save their state across postbacks.
当使用数据绑定控件时,所有控件都使用ViewState保存回发后的状态,这将变得异常痛苦。
If you are not doing postbacks in a page or are always regenerating the controls on a page on each request, you should disable view state at the page level.
如果您不发回页,或者总是针对每个请求重新生成页上的控件,则应该在页级别禁用视图状态。
If you are not doing postbacks in a page or are always regenerating the controls on a page on each request, you should disable view state at the page level.
如果您不发回页,或者总是针对每个请求重新生成页上的控件,则应该在页级别禁用视图状态。
应用推荐