// 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.aspx | 18:11:38.1581721 |
/default.aspx?id=0.9814159845796837 | 18:11:39.4771721 |
/default.aspx?id=0.0690589777308594 | 18:11:40.5121721 |
/default.aspx?id=0.2926196883962531 | 18:11:41.5431721 |
/default.aspx?id=0.27714346869674433 | 18:11:42.5711721 |
/default.aspx?id=0.23990704931190787 | 18:11:43.6031721 |
/default.aspx?id=0.5152639555775434 | 18:11:44.6311721 |
/default.aspx?id=0.9663192889644554 | 18:11:45.6601721 |
/default.aspx?id=0.05233836153089794 | 18:11:46.6891721 |
/default.aspx?id=0.990701546762958 | 18:11:47.7231721 |
/default.aspx?id=0.8509521363990988 | 18:11:48.7491721 |
/default.aspx?id=0.8889482356238659 | 18:11:49.7801721 |
/default.aspx?id=0.8107269278111471 | 18:11:50.8091721 |
/default.aspx?id=0.9552779458262948 | 18:11:51.8381721 |
/default.aspx?id=0.8843174553022721 | 18:11:52.8671721 |
/default.aspx?id=0.2618006512710079 | 18:11:53.8971721 |
/default.aspx?id=0.23618589970902182 | 18:11:54.9261721 |
/default.aspx?id=0.06369655515251904 | 18:11:55.9551721 |
/default.aspx?id=0.5500060713552768 | 18:11:56.9871721 |
/default.aspx?id=0.14656051770842493 | 18:11:58.0161721 |
/default.aspx?id=0.8012164112638755 | 18:11:59.0451721 |
/default.aspx?id=0.13910572981175662 | 18:12:00.0731721 |
/default.aspx?id=0.805659893994249 | 18:12:01.1041721 |
/default.aspx?id=0.9413161147521802 | 18:12:02.1331721 |
/default.aspx?id=0.032834655973202786 | 18:12:03.1621721 |
/default.aspx?id=0.683765764027042 | 18:12:04.1931721 |
/default.aspx?id=0.073070123620052 | 18:12:05.2221721 |
/default.aspx?id=0.24228703489385567 | 18:12:06.2671721 |