// only redirect to WinLogin.aspx if user is internal & IE if (userIP.Equals(serverIP) && Request.Browser.IsBrowser("ie")) { Server.Transfer("SecondLogin.aspx""); } else { Server.Transfer("ThirdLogin.aspx""); }
userIP.Substring(0, userIP.LastIndexOf("."));
LastIndexOf
userIP
Substring
Substring(0, -1)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)