作为QueryString传递时丢失值 [英] Losing value when passing as QueryString

查看:56
本文介绍了作为QueryString传递时丢失值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



大家好。我有一些我不明白的东西。我正在传递一个url中会话变量中保存的值
。它在本地运行良好

测试,但当我把它放在主网络服务器上时,价值消失了。

这里没什么特别的,真的很简单......我错过了什么? br />
< a href =" http:// ServerName / ReportServer?/ SomeRpts / rpt1& urid =<%=

Session(" txtURID")%> ;"

target =" blank">合同 - 客户列表< / a>

***通过Developersdex发送 http://www.developersdex.com ***

不要只参加USENET。 ..得到奖励!


Hi folks. I have something here that I don''t understand. I am passing
a value held in a session variable on a url. It works fine locally
testing but when I put it on the main web server the value disappears.
Nothing fancy here, real simple...what I am missing ?
<a href="http://ServerName/ReportServer?/SomeRpts/rpt1&urid=<%=
Session("txtURID") %>"
target="blank">Contracts - Client Listing</a>
*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!

推荐答案

你是否对你想要使用的值做了一个response.write? (只是为了确保它实际上包含的东西)


-


问候


史蒂文烧伤

Ur IT Mate Group
www.it-mate.co.uk


保持免费!


< SusanC>在留言新闻中写道:Ot ************** @ TK2MSFTNGP10.phx.gbl ...

|

|嗨伙计。我有一些我不明白的东西。我正在通过

| url上的会话变量中保存的值。它在当地工作正常

|测试但是当我把它放在主Web服务器上时,值就会消失。

|没什么好看的,真的很简单...我错过了什么?

|

|

| < a href =" http:// ServerName / ReportServer?/ SomeRpts / rpt1& urid =<%=

|会话(txtURID)%>"

| target =" blank">合同 - 客户列表< / a>

|

|

| ***通过开发人员指南 http://www.developersdex.com 发送***

|不要只是参加USENET ......获得奖励!
Have you done a response.write on the value you are trying to use? (just to make sure it actually contains something)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

<SusanC> wrote in message news:Ot**************@TK2MSFTNGP10.phx.gbl...
|
| Hi folks. I have something here that I don''t understand. I am passing
| a value held in a session variable on a url. It works fine locally
| testing but when I put it on the main web server the value disappears.
| Nothing fancy here, real simple...what I am missing ?
|
|
| <a href="http://ServerName/ReportServer?/SomeRpts/rpt1&urid=<%=
| Session("txtURID") %>"
| target="blank">Contracts - Client Listing</a>
|
|
| *** Sent via Developersdex http://www.developersdex.com ***
| Don''t just participate in USENET...get rewarded for it!


我之前也遇到过这个问题。测试

服务器上的安全设置可能与生产服务器上的安全设置不同。检查

生产服务器并确保启用会话cookie。

< SusanC>在留言新闻中写道:Ot ************** @ TK2MSFTNGP10.phx.gbl ...
I ran into this once before too. Your security settings on the testing
server are probably different from those on the production server. Check
the production server and make sure that session cookies are enabled.
<SusanC> wrote in message news:Ot**************@TK2MSFTNGP10.phx.gbl...

嗨大家好。我有一些我不明白的东西。我正在传递一个url中会话变量中保存的值。它可以在本地进行测试。但是当我把它放在主网络服务器上时,它的价值就会消失。
这里没什么好看的,真的很简单......我错过了什么?

< ; a href =" http:// ServerName / ReportServer?/ SomeRpts / rpt1& urid =<%=
会话(" txtURID")%>"
target =" blank" ;>合同 - 客户列表< / a>

***通过Developersdex发送 http://www.developersdex.com ***
不要只是参加USENET ......获得奖励!

Hi folks. I have something here that I don''t understand. I am passing
a value held in a session variable on a url. It works fine locally
testing but when I put it on the main web server the value disappears.
Nothing fancy here, real simple...what I am missing ?
<a href="http://ServerName/ReportServer?/SomeRpts/rpt1&urid=<%=
Session("txtURID") %>"
target="blank">Contracts - Client Listing</a>
*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!



谢谢,但我们在这台服务器上有几个网络应用程序,并且已经使用

这个目录一段时间(3 + yr)并使用查询字符串

很多。这些是让我的头发变得更灰的东西!! :)

这不可能是数字和字符串之间的差异,因为我相信

网址被认为是字符串....还有更多想法吗?

***通过开发人员指南 http://www.developersdex.com ***

不要只是参加USENET ......获得奖励!
Thanks, but we have several web apps on this server and have been using
this dir as well for a while now (3+yr) and are using querystrings a
lot. These are the things that keep making my hair get more gray!! :)
It couldn''t be the diff between a number and string because I believe
the url is considered a string....any more ideas ?
*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


这篇关于作为QueryString传递时丢失值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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