2012-11-24 98 views
0

我必须这样做:像Gooogle企业和其他许多网站..Url ....重写在asp.net ..!

我目前的ULR 1: https://play.google.com/store/apps/details?id=com.ruanshaomin.game&feature=search_result&rdid=com.ruanshaomin.game&rdot=1

当我点击这样的登录,然后URL变化...... URL 2 https://accounts.google.com/ServiceLogin?service=googleplay &被动= 1209600 &继续=https://play.google.com/store/apps/details?id%3Dcom.ruanshaomin.game%26feature%3Dsearch_result%26rdid%3Dcom.ruanshaomin.game%26rdot%3D1&followup=https://play.google.com/store/apps/details?id%3Dcom.ruanshaomin.game%26feature%3Dsearch_result%26rdid%3Dcom.ruanshaomin.game%26rdot%3D1

,当我成功登录然后 它是直接重定向到上面的链接(ULR 1)...我怎么能做到这一点..?

回答

1

的javascript:

if(document.location.href.indexOf('continue')!=-1) 
document.location = document.location.href.split('continue=')[1]; 

C#

if(!IsCallback && Request.QueryString["continue"] != null) 
Response.Redirect(Request.QueryString["continue"].ToString());