查询字符串在服务器上不起作用 [英] Query string not work on server

查看:75
本文介绍了查询字符串在服务器上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

string n = Request.QueryString [0] .ToString();

在本地工作..但在服务器上部署后它无法工作..我可以看到地址栏上的查询字符串值..但是无法在代码中使用。如何恢复该问题?

string n = Request.QueryString[0].ToString();
is work on locally..but after deploy on server it not works..I can see query string value on address bar..but cant use in code..How to recover that problem?

推荐答案

嘿亲爱的,如果可能的话请使用try catch语句并将代码放入其中检查生成哪种错误。因此,很容易找到实际问题。另外,如果每个功能在托管服务器上都无法正常工作,请将快照发送给我。所以,我们必须找出实际问题......所以请将您的代码发送给我快照.....
Hey dear, if possible then please use try catch statement and put your code inside them to check which kind of error generated. So, it's be easy to find out actual problem..otherwise send me your code with snapshot becz any time each functionality not working properly on hosted server. so, we have to find out actual problem...so send me your code with snapshot.....


这篇关于查询字符串在服务器上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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