问题描述
嗨:
我有以下内容:
NRYear = Request.QueryString(" nryear")
我假设会导致NRYear包含一个字符串。
然而,当我用1/1 /连接它时,我得到了 1/1 / + 2003"好像
NRYear就是一个数字。
最后,这将是一个SQL字符串,如
SQL =" select * from newsreleases where nrdate between 1/1/2003 and
12/31/2003;"
我希望来自Request.QueryString作为用户'
选择的年份。
帮助!耗尽了想法,
Jules
Hi:
I have the following:
NRYear = Request.QueryString("nryear")
which I assumed would result in NRYear containing a string.
However, when I concatenate it with "1/1/", I get "1/1/+2003" as if
the NRYear is a number.
Ultimately, this will go in a SQL string such as
SQL = "Select * from newsreleases where nrdate between 1/1/2003 and
12/31/2003;"
and I want the year to come from the Request.QueryString as the user''s
selection.
Help!!! Running out of ideas,
Jules
推荐答案
你能否展示你用来连接的代码?
Could you possibly show the code you are using to concatenate?
这篇关于为什么Request.QuerySting被视为一个数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!