Monday, March 26, 2012

pass the web value from asp.net to asp by url

hi all,

i have two web files, one is *.aspx and the other is *.asp

i need pass textbox.text value from *.aspx to *.asp

so i can process the value(ex:string ) in *.asp

i pass the value like this

<a href="http://links.10026.com/?link=iflowall.asp?case_no=<%=(case.Text)%>&bank_no=<%=(bank_no.Text)%>">connect</a></p>

and receive from *.aspx like this

<td><%= Request.QueryString("case_no") %>於<%= Request.QueryString("bank_name") %></td>

in *.asp, it can't decode the string "bank_name" so the value is null why?

if the string is about number(ex:1234) it`s ok, but wrong when the string is chinses word(ex:中文)

Not a asp guru but you do not seem to have a query string parameter "bank_name" (only bank_no) when constructing the string in asp?
Yes you got the Query string wrong. As in your .aspx constructed url, the query string parameter is bank_no not bank_name

0 comments:

Post a Comment