How HTML offline log files are created by asp.net?

Share:

How HTML offline log files are created by asp.net?


  • How HTML offline log files are created by asp.net, C#
  • C# HTML offline log files are created
  • Log created on asp.net using c# | Microsoft ASP Solutions
  • Create log files using C#
  • Offline Logs create html file in C#


CS Page Code Below


protected void btnLogin_Click(object sender, EventArgs e)
        {
            if(txtUser.Text=="Rajat" && txtPass.Text=="JHA")
            {
                createLog(txtUser.Text);
            }
            else
            {
                lblMsg.Text = "UserName & Password is Wrong";
                lblMsg.Visible = true;
            }
        }

        public void createLog(string Username)
        {
            File.WriteAllText(Server.MapPath("logs/log.html"), "welcome " + Username + "");
        }
    


No comments