-
Perform Javascript from codebehind with RegisterStartupScript
A piece of javascript can be formed within codebehind and registered to run after the page has loaded.
-
Get name of month or day in C# and VB.Net
The DateTime class is very useful. But sometimes you just want to print out the name of the month or day you have the integer value of, without the hassle of creating a whole DateTime object.
-
Using VB.Net and C#.Net reserved words as regular names
You can take away the meaning of reserved words to use them any way you like. But I don’t advise doing so unless it’s really appropriate to do so. For example, as an entry of an enumeration.
-
404 pages in ASP.Net websites
Creating a 404 page for an ASP.Net website isn’t hard. But it depends on when you want it to be showed and how it should be showed. I’ll explain the quick and simple way.
-
Execute code for a page after Master Page is loaded
Sometimes you’d like to edit a public property or call a function of a Master Page from the currently requested page.
-
.Net MVC @helper in Razor view using C# and VB
Creating reusable pieces of HTML with dynamic data for .Net MVC Razor made quick and easy with helpers.
-
Calculate difference between two dates in C# and VB
Calculating the difference between dates couldn’t have been easier as in C# or VB. I’ll show you how in both languages and how to calculate the difference in years and months and more.