|
Foydalanuvchi jurnalini matnli faylda yaratish
|
bet | 49/50 | Sana | 25.01.2021 | Hajmi | 1,81 Mb. | | #13068 |
2.4 Foydalanuvchi jurnalini matnli faylda yaratish
Bu bo’limda mavjud tizimimizda foydalanuvchilar faoliyati jurnalini tashkil qilish mavzumizning kod qismi bilan tanishtiramiz. Ya’ni fodalanuvchilar jurnali nima, va qanday tashkil qilingan , nima ishlar qiladi , foydalanuvchiga qanday foydasi bor va shunga o’xshagan savollarga javob beriladi.
using System;
using System.Text;
using System.ComponentModel;
using System.Web.UI;
using System.Configuration;
namespace CSASPNETCurrentOnlineUserList
{
[Description("CheckUserOnline"), DefaultProperty(""),
ToolboxData("<{0}:CheckUserOnline runat=server />")]
public class CheckUserOnline : System.Web.UI.WebControls.PlaceHolder
{
///
/// Interval of refresh time,the default is 25.
///
public virtual int RefreshTime
{
get
{
object _obj1 = this.ViewState["RefreshTime"];
if (_obj1 != null) { return int.Parse(((string)_obj1).Trim()); }
return 25;
}
set
{
this.ViewState["RefreshTime"] = value;
}
}
protected override void Render(HtmlTextWriter writer)
{
// Get the visiting address for xmlhttp form web.config.
string _refreshUrl = (string)ConfigurationManager.AppSettings["refreshUrl"];
string _scriptString = @"
|
| |