2012-11-24 103 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());