A collection of articles and tutorials on web development with ASP.NET by Mike Brind

Latest Entries

Javascript 24 hour clock

01 May 2007 22:54

Javascript

A snippet for a javascript clock showing time in 24 hours with seconds

Click to read more about Javascript 24 hour clock ...

Viewed 21804 times

1 Comment for this item

Parameter Queries in ASP.NET with MS Access

13 April 2007 22:17

ASP.NET 2.0 MS Access ADO.NET

A selection of code samples for executing queries against MS Access using parameters.

Click to read more about Parameter Queries in ASP.NET with MS Access ...

Viewed 205823 times

48 Comments for this item

Paging long articles in ASP.NET using C#

09 April 2007 21:44

C# ASP.NET 2.0

Long articles are better broken into bite-sized chunks over several pages. With static HTML, this is easily achieved by dividing the article into logical separations and creating separate .htm files for each. Here's how to do it using C# for an article that gets posted to a database.

Click to read more about Paging long articles in ASP.NET using C# ...

Viewed 20304 times

3 Comments for this item

Regular Expressions and VBScript

09 April 2007 12:42

Classic ASP VBScript

Regular Expressions provide a much more powerful and efficient way of manipulating strings of text than the use of a variety of standard string functions. They have a reputation of being cryptic and difficult to learn, but are actually quite easy to learn and use.

Click to read more about Regular Expressions and VBScript ...

Viewed 119605 times

3 Comments for this item

Date Formatting in C#

08 April 2007 21:11

C# ASP.NET 2.0

Cheat sheet detailing formatting options for dates and times in C#.

Click to read more about Date Formatting in C# ...

Viewed 301823 times

39 Comments for this item

Date formatting in VBScript

08 April 2007 20:22

Classic ASP VBScript

A cheat sheet for people who want to format dates using VBScript

Click to read more about Date formatting in VBScript ...

Viewed 202542 times

8 Comments for this item

Migrating from Classic ASP to ASP.NET - equivalent objects and classes

07 April 2007 10:01

Classic ASP VBScript ASP.NET 2.0

Having spent some time familiarising oneself with the objects available in Classic ASP, it can be tricky sometimes to find the .NET framework equivalent. Here's a guide.

Click to read more about Migrating from Classic ASP to ASP.NET - equivalent objects and classes ...

Viewed 19101 times

1 Comment for this item

How to retain carriage returns or line breaks in an ASP.NET web page

06 April 2007 19:55

C# ASP.NET 2.0 HTML

Many newcomers to web development cannot get their head around why the carriage returns they made in their data on input from a textarea, or from a text file, Excel spreadsheet etc. do not appear when the web page renders.

Click to read more about How to retain carriage returns or line breaks in an ASP.NET web page ...

Viewed 173350 times

28 Comments for this item

Create an RSS Feed In ASP.NET 2.0 C#

05 April 2007 22:37

C# ASP.NET 2.0

Using the XmlTextWrite to output an XML file that serves as an RSS feed.

Click to read more about Create an RSS Feed In ASP.NET 2.0 C# ...

Viewed 15317 times

2 Comments for this item

How to conditionally show an image, or other control in ASP.NET

04 April 2007 21:45

ASP.NET 2.0

Quite often, you want to display an item from a database that may or may not have an associated image. Examples might include a news story, product details, car for sale etc. But you want to avoid the dreaded "redex" if a picture isn't present.

Click to read more about How to conditionally show an image, or other control in ASP.NET ...

Viewed 42980 times

5 Comments for this item

Create A Utility Class Containing Site-Wide Functions

03 April 2007 21:33

C# ASP.NET 2.0

In Classic ASP, the typical model for managing site-wide functions is to create one or more server-side includes containing libraries of code. The OOP nature of ASP.NET offers a much more elegant solution.

Click to read more about Create A Utility Class Containing Site-Wide Functions ...

Viewed 13433 times

1 Comment for this item

Iterating through CheckBoxList To Insert Records

03 April 2007 20:52

ASP.NET 2.0 ADO.NET

Having inserted a record, you want to retrieve the newly created record's ID number, then iterate over a collection of items, such as a CheckBoxList to insert additional information relating to the record.

Click to read more about Iterating through CheckBoxList To Insert Records ...

Viewed 10002 times

0 Comments for this item

Insert Single Value With Stored Procedure ASP.NET C#

03 April 2007 14:16

ASP.NET 2.0 SQL ADO.NET

Code for calling stored procedure in the Code-Behind to insert a single value from a text box.

Click to read more about Insert Single Value With Stored Procedure ASP.NET C# ...

Viewed 41446 times

3 Comments for this item

How can I use ASP.NET to do the following

01 April 2007 16:10

ASP.NET 2.0

A list of common things that people want to be able to use ASP.NET for on the client-side.

Click to read more about How can I use ASP.NET to do the following ...

Viewed 4926 times

0 Comments for this item

Recent Comments

Obinna Okafor 26/05/2017 16:16
In response to Razor Pages - The Elevator Pitch
Thank you for this wonderful piece, Mike. I need more of these...Keep them coming - anything more...

Cyrus 26/05/2017 06:00
In response to Razor Pages - The Elevator Pitch
There are some concern about razor pages performance. Is it faster or slower than MVC? would you a a...

Cyrus 26/05/2017 05:44
In response to Razor Pages - Understanding Handler Methods
well done, thank you....

Satyabrata Mohapatra 23/05/2017 11:41
In response to Razor Pages - Understanding Handler Methods
Nice and easy !! Great post....

Cyrus 16/05/2017 19:55
In response to Razor Pages - Getting Started With The Preview
There is something wrong related to microsoft.dotnetcore.mvc.taghelpers! if you remove it from page...

Cyrus 16/05/2017 10:18
In response to Razor Pages - Getting Started With The Preview
well done mike, it was very useful, I really appreciate that....

Satyabrata Mohapatra 16/05/2017 07:21
In response to Razor Pages - Getting Started With The Preview
Finally!!!! web pages in asp.net core!!! Super excited !!!! Thank u sir for sharing.....Awaiting on...

Daniele 14/03/2017 10:24
In response to Working With Zip Files In ASP.NET MVC
is it possible give to the user a progress bar of the zipping process? Thanks in advance. ...

Suraj 13/03/2017 22:20
In response to Working With Zip Files In ASP.NET MVC
Very nice article. Thanks....

Satyabrata Mohapatra 19/02/2017 03:01
In response to Free SSL Certificates On IIS With LetsEncrypt
Thanks for sharing. Learned a lot !!...