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

Latest Entries

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 215541 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 19330 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 178679 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 15648 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 44467 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 13743 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 10082 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 41742 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 5004 times

0 Comments for this item

Saved Parameter Queries with MS Access and ASP

31 March 2007 21:19

Classic ASP VBScript MS Access

Protecting your application against SQL injection and easier debugging are just two of the benefits of using saved parameter queries in MS Access.

Click to read more about Saved Parameter Queries with MS Access and ASP ...

Viewed 16264 times

0 Comments for this item

ADOX, MS Access and ASP

31 March 2007 19:55

Classic ASP VBScript MS Access

You don't need MS Access installed on your computer to create a database file for your ASP web site. Using ADOX and some data definition language allows you to produce an mdb file programmatically.

Click to read more about ADOX, MS Access and ASP ...

Viewed 9287 times

0 Comments for this item

Paging long articles in Classic ASP

31 March 2007 17:46

VBScript

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 ASP for an article that gets posted to a database.

Click to read more about Paging long articles in Classic ASP ...

Viewed 22763 times

2 Comments for this item

Recent Comments

Thomas 05/03/2018 00:59
In response to I'm Not Writing A Book On Razor Pages
There's a typo on this page: = true)] should be [BindProperty(SupportsGet = true)]...

Rolf Herbert 04/03/2018 19:25
In response to I'm Not Writing A Book On Razor Pages
So is MS deprecating razor Web Pages..? Is it dead..? I wish they would stop killing things so its...

Borut 17/02/2018 12:59
In response to I'm Not Writing A Book On Razor Pages
Mike, is it possible that Web Pages and Razor Pages "live" together in one web application? I a I...

hrboyce 09/02/2018 04:44
In response to I'm Not Writing A Book On Razor Pages
Mike, First thanks for doing this but I have to ask, any chance you would consider converting one of...

aziz sallam 07/02/2018 10:18
In response to I'm Not Writing A Book On Razor Pages
u are a great man...

Satyabrata Mohapatra 31/01/2018 11:36
In response to I'm Not Writing A Book On Razor Pages
This is a great news!!!! Thanks...

tangdf 30/01/2018 07:25
In response to I'm Not Writing A Book On Razor Pages
=> { o.ConfigureFilter(new IgnoreAntiforgeryTokenAttribute()); }); The extension method does...

Obinna Okafor 30/01/2018 04:02
In response to I'm Not Writing A Book On Razor Pages
Thank you very much. I would like to see a project built from scratch using Razor Pages. And it show...

rachida Dukes 31/10/2017 13:52
In response to Customising Identity in Razor Pages
Thanks again for this wonderful tutorial. I followed all the steps in this section called: Adding...

Rachida 31/10/2017 12:06
In response to Customising Identity in Razor Pages
Thanks very much for this wonderful tutorial, it helped a lot....