ランタイム<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