访问http://mobile.139.com这个2级域名的时候,就会自动转到
http://www.139.com/Skin/1/index.aspx?BlogId=20112上面这个地址,请问asp.net怎么重新http://xxx.abc.com到http://abc.com/index.aspx?id=xxx 呢
http://www.139.com/Skin/1/index.aspx?BlogId=20112上面这个地址,请问asp.net怎么重新http://xxx.abc.com到http://abc.com/index.aspx?id=xxx 呢
解决方案 »
- 导入excel文件内容到页面
- SQL缓存依赖出现了问题,请教各位。
- 啊啊啊 传值问题 ~~~~~~~~~~~~~~~~~~~~~~~
- javascript或者html中能否打开一个FILEDIALOG对话框啊。请高手指教!在线等,解决就结贴……
- 送分先,来者有份,顺便回答一下小弟的菜菜问题 :-)
- 能不能把表格和层作为控件来控制它的载入???
- 问一个很菜的问题Assembly具体有什么用
- 报告这样的错误为什么?
- <a href='wwgbt302Detail.aspx?sqlWhere="+sqlWhere+"'>詳細</a>在cs中传参数,为什么..?
- ASP.NET网站中使用正则验证控件的问题
- (送分)Response.Redirect()函數問題?
- 给几个做的比较好的大型企业的信息管理系统网站的网址吧
'在此处放置初始化页的用户代码
Dim StrHTTP As String = Request.ServerVariables("http_host")
Dim StrUrl As String
If StrHTTP = "http://xxx.abc.com" Then
StrUrl = "http://abc.com/index.aspx?id=xxx"
else
..........................................
End If
Response.Redirect(StrUrl)
End Sub
{
string StrHTTP = Request.ServerVariables("http_host");
string StrUrl;
if (StrHTTP == "http://xxx.abc.com") {
StrUrl = "http://abc.com/index.aspx?id=xxx";
}
else
{
...
}
Response.Redirect(StrUrl);
}
if(location.href='http://xxx.abc.com')
{
location='http://abc.com/index.aspx?id=xxx';
}
</script>