求各位路过的帮帮忙。。。。。。。。。。。。。。。。
我的程序在本地上一点问题也没有,可是一上传到服务器上,动不动就莫名其妙的转到了localhost的本地调试页面中,苦恼啊,而且搜索页面上的几个DropDownList也莫名其妙的无法取得值,如果说我在本地上能调试也就罢了,可是我本地上明明好用!这可叫我怎么办呀!大过年的,大家都玩去了,只有我还得坐在电脑前咕咚这个奇怪的问题!
虚拟服务器提供商告诉我web.config文件中的连接ip地址写127.0.0.1,会不会和这个有关呢?我的程序立可是从头搜到尾也没有一个localhost的字样啊!可是我用他给我的那个真实的ip地址还不好用^^^^
麻烦请路过的好心的人帮我想想是怎么回事,我真的没有办法了!
我的搜索代码是这样写得:
Dim sgclassid As String
Dim scolor As String
Dim sprice As String
sgclassid = ddlclass.SelectedValue
scolor = ddlcolor.SelectedValue
sprice = ddlprice.SelectedValue
Response.Write("<script>window.open('http://www.xxxxxxxxxxx.com/result.aspx?gid=" + Server.UrlEncode(sgclassid) + "&color=" + Server.UrlEncode(scolor) + "&price=" + Server.UrlEncode(sprice) + "');</script>")