如何使用跨页共享数据 [英] how to share data using cross pages

查看:98
本文介绍了如何使用跨页共享数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我需要一些开发网页的帮助.我有一个网页可以提交数据库中产品的详细信息,其中最多包含三张图片.

在第一页中填写所有字段.在同一页面上,有三个imgbutton用于上传产品图像.现在,我希望每当用户单击这些按钮时,都应该在第二页上转移页面以允许上传图像,并且当工作完成时,用户应该返回上一页,并在特定的imagebutton上保存图像.

请记住,其他字段的数据一定不能丢失.

谢谢

Dear all,

I need some help developing web pages. I have a webpage to submit details of product in my database with their max three images.

In first page is fill all fields. On same pages there are three imgbuttons to upload the image of product. Now I want that whenever a user click on these button then page should be transfered on second page to allow to upload the image and when work is done then user should come back on previous page with saved image on particular imagebutton.

Remember other field''s data must not be loss.

Thanks

推荐答案

为什么不能使用会话变量来控制它?
Why can''t you use session variables to control this?


首先,我想提一提,您的方向错误.您可以达到目的,而无需前往另一个页面.以下是上传多个图像的非常简单的解决方案.
在ASP.NET中上传多个图像

如果您仍在寻找下一页,请上传图像并返回上一页并保存图像.让我知道原因,为什么您需要这样做?

希望以下链接能以单页概念满足您的要求.
多个文件在客户端具有预览功能的上传器
First of all i want to mention that, you are going towards wrong direction. You can serve your purpose without going to another page. Following is a very simple solution for multiple image upload.
Multiple Image Upload in ASP.NET

If you are still looking for going to another page then upload images and come back to previous page with saved image. Let me know the reason, why you need to do that??

I hope the following link will fulfill your requirement with single page concept.
Multiple files uploader with preview on client side


这篇关于如何使用跨页共享数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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