Aklımda Kalası Kelimeler

* давайте работать вместе
* Zarf ve Mazruf, Zerafet(xHoyratlık) ile aynı kökten(za-ra-fe) gelir
* Bedesten
* Suç subuta ermiştir - Suç sabit olmuştur
Application_BeginRequest etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
Application_BeginRequest etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

17 Ocak 2010 Pazar

Application_BeginRequest ile loglama




// Global.asax içinde
protected void Application_BeginRequest(object sender, EventArgs e)
{
Uri uri = HttpContext.Current.Request.Url;
StreamWriter sw = File.AppendText(Server.MapPath("~/test.txt"));
sw.WriteLine(uri.PathAndQuery + "\t\t" + DateTime.Now.ToString("HH:mm:ss.fffffff"));
sw.Flush();
sw.Close();
}



<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HttpHandlerKullananWeb._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h1>Tekrar yükle</h1>

<script type="text/javascript">

setTimeout(function() {
var ss = "default.aspx?id=" + Math.random();
document.write(ss)
window.location = ss;
}, 1000);

</script>

</div>
</form>
</body>
</html>


/Default.aspx18:11:38.1581721
/default.aspx?id=0.981415984579683718:11:39.4771721
/default.aspx?id=0.069058977730859418:11:40.5121721
/default.aspx?id=0.292619688396253118:11:41.5431721
/default.aspx?id=0.2771434686967443318:11:42.5711721
/default.aspx?id=0.2399070493119078718:11:43.6031721
/default.aspx?id=0.515263955577543418:11:44.6311721
/default.aspx?id=0.966319288964455418:11:45.6601721
/default.aspx?id=0.0523383615308979418:11:46.6891721
/default.aspx?id=0.99070154676295818:11:47.7231721
/default.aspx?id=0.850952136399098818:11:48.7491721
/default.aspx?id=0.888948235623865918:11:49.7801721
/default.aspx?id=0.810726927811147118:11:50.8091721
/default.aspx?id=0.955277945826294818:11:51.8381721
/default.aspx?id=0.884317455302272118:11:52.8671721
/default.aspx?id=0.261800651271007918:11:53.8971721
/default.aspx?id=0.2361858997090218218:11:54.9261721
/default.aspx?id=0.0636965551525190418:11:55.9551721
/default.aspx?id=0.550006071355276818:11:56.9871721
/default.aspx?id=0.1465605177084249318:11:58.0161721
/default.aspx?id=0.801216411263875518:11:59.0451721
/default.aspx?id=0.1391057298117566218:12:00.0731721
/default.aspx?id=0.80565989399424918:12:01.1041721
/default.aspx?id=0.941316114752180218:12:02.1331721
/default.aspx?id=0.03283465597320278618:12:03.1621721
/default.aspx?id=0.68376576402704218:12:04.1931721
/default.aspx?id=0.07307012362005218:12:05.2221721
/default.aspx?id=0.2422870348938556718:12:06.2671721