Konu
ASP.NET URL Karşılaştırma
02-11-2010, 23:04:14
#2
HayroLa
string site = Request.ServerVariables["server_name"];
string url ="sadikcalisir";
if (url==site)
{
Label1.Text = "bu site doğrudur";
}
else
{
Response.Redirect("http://sadikcalisir.com.tr");
}
denemedim ama çalışır herhalde