ランタイム<a>リンクを生成しています。リンクを完了するには、次のコードを使用しています。
string appPath = protocol + System.Web.HttpContext.Current.Request.ServerVariables["HTTP_HOST"] + System.Web.HttpContext.Current.Request.ApplicationPath;.
しかし、ユーザーが Web サイトを開こうとすると:http://123.123.123.123/testAppこの時点で、私のリンクは で作成されhttp://myservername.com/testAppます。
ユーザーが入力したアドレスが必要です。
http://123.123.123.123/testAppユーザーがリンクから開いているウェブサイトを開く場合は、
http://123.123.123.123/testApp/Default.aspx
http://myservername.com/testAppおよびユーザーがリンクから Web サイトを開く場合は、
http://myservername.com/testApp/Default.aspx