当我重新加载页面时,文件上传数据为空 [英] When i reload page the file upload data get empty

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

问题描述

当我重新加载页面时,文件上传数据为空

When i reload page the file upload data get empty

推荐答案

除非您要进行自己的会话管理(不太可能是这个问题),请确保...

EnableViewState = True



将文本框的值保存在会话变量中,然后在Page_Load或Page_PreRender中重新填充该文本框.如果您使用的是MasterPages,则必须使用Page_PreRender.


-Artificer GM
Unless you are doing your own session management (not likely from the question) make sure...

EnableViewState = True

OR

save the value of of the text-box in a session varialbe and repopulate the textbox in the Page_Load or Page_PreRender. If you''re using MasterPages the definetly use the Page_PreRender.


-Artificer GM


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

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