Friday, February 24, 2023

Await async. Iactionresult actionresult task asp.net

These actionresult and iactionresult are used in webapi


 https://www.c-sharpcorner.com/blogs/iactionresult-vs-actionresult

Console.Writeline async

 Context.response. writeasync

Console.writeline c#

with use of $ in console.writeline we can add {} brackets.

int a=5;

console.write line($"hello {a}")

ASP.NET Core website

 ASP.net core websites can be run in iis server, appache server, linux etc


If we use only enter button for saving data instead of save button than it will save time


https://learn.microsoft.com/en-us/visualstudio/get-started/csharp/tutorial-aspnet-core?view=vs-2022


https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core?view=aspnetcore-7.0



Dispose and finelize c# garbage collector ASP.NET

 https://www.dotnettricks.com/learn/netframework/difference-between-finalize-and-dispose-method

Thursday, February 9, 2023

Changing time every second javascript - setInterval

 function doDate()


{

    var str = "";


    var days = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

    var months = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");


    var now = new Date();


    str += "Today is: " + days[now.getDay()] + ", " + now.getDate() + " " + months[now.getMonth()] + " " + now.getFullYear() + " " + now.getHours() +":" + now.getMinutes() + ":" + now.getSeconds();

    document.getElementById("todaysDate").innerHTML = str;

}


setInterval(doDate, 1000);


reference:- https://stackoverflow.com/questions/26584233/updating-javascript-time-every-second

How to show task manager in status bar in windows 10 or hide from task bar when minimized

 > Open task manager

> Click on option menu and check on "hide when minimized"