跨网页提交,并从源头信息传递到目标页面 [英] Cross Page Postback and passing info from source to destination page

查看:85
本文介绍了跨网页提交,并从源头信息传递到目标页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在源页面文件上传控制。上传按钮处理程序中,我读文件到内存中(做一些验证后),因为它始终将是一个TXT文件,我以为我需要传递到目标页面的字符串。

I have a FileUpload control in the Source page. On the Upload button handler, I read the file into memory (after doing some validations) and since it's always going to be a TXT file, I create a string that I need to pass to the Destination page.

我想用跨页回发,并设置上传按钮的一项PostBackUrl 属性。但现在看来,在上传按钮处理程序中的断点永远不会命中。它直接转到的Page_Load 在目标页面。

I thought of using Cross Page postback and set the PostBackUrl property of the upload button. But it appears that the breakpoint in the Upload button handler is never hit. It directly goes to the Page_Load in the Destination page.

如果我不能使用跨页回发,并且不希望使用会话或数据库,我怎么通过这个字符串从源代码页到目标页面?

If I can't use Cross Page postback and don't want to use Session or the database, how do I pass this string from Source page to the Destination page?

有人吗?

推荐答案

我结束了使用会话

这篇关于跨网页提交,并从源头信息传递到目标页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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