ASP向导控件 [英] ASP wizard control

查看:59
本文介绍了ASP向导控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在asp.net和c#中开发一个Web应用程序.我正在使用一个ASP向导控件.我的向导中有6个向导步骤.在每个阶段,即时消息都使用许多控件,以便在执行过程中完成许多回发.
我在第二个向导步骤中使用了一个asp文件上传控件.我的问题是,当我在最后一步中单击向导finsh按钮时,使用fileupload控件选择的值未获得.使用所有其他控件获取的值在那里.
希望有人帮助我.
我只想在最后一步中获取选定的文件名.
在此先感谢

Hi,
I am developing a web application in asp.net and c#. I''m using an asp wizard control. there is 6 wizard steps in my wizard. In each phase im using many controls, so that many postback is done during execution.

I am using a asp fileupload control in second wizard step. My problem is that the value selected using fileupload control is not getting when i click wizard finsh button in the final step. values acquired using all other controls are available there.
Hope someone help me.
I just want to get the selected filename in last step.
Thanks in advance

推荐答案

在使用FileUpload Control时,每次回发都将为null.

因此,解决方案是将Fileupload控件值保存在隐藏字段之一内.

如果有帮助,请 投票 接受答案 .
When you are using FileUpload Control, Which becomes null on every postbacks.

So the solution will be to save the Fileupload control value inside one of the hidden field.

Please vote and Accept Answer if it Helped.


这篇关于ASP向导控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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