in web.config
string intranetUrl_101 = ConfigurationManager.AppSettings["INTRANETURL_101"].ToString().ToLower(); string intranetUrl_102 = ConfigurationManager.AppSettings["INTRANETURL_102"].ToString().ToLower(); string strRequestingUrl = Request.Url.ToString().ToLower(); bool login = true; if (Role == "CA" || Role == "C3V" || Role == "C3M") //Restrict to login C3ADMIN via Internet. C3ADMIN allowed only via intranet. { if ((strRequestingUrl != intranetUrl_101) && (strRequestingUrl != intranetUrl_102))//C3 Admin Accessing through internet { lblInvalid.Text = CommonMessage.ShowMessage("102"); lblInvalid.Visible = true; login = true; //login = false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)