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

Latest Entries

VBScript Regular Expressions Cheat Sheet

14 May 2007 08:44

VBScript

Metacharacters for use with VBScript regular expressions

Click to read more about VBScript Regular Expressions Cheat Sheet ...

Viewed 51960 times

0 Comments for this item

Javascript functions for form fields

12 May 2007 22:54

Javascript

A number of useful functions for accessing various properties and values of form fields.

Click to read more about Javascript functions for form fields ...

Viewed 11211 times

3 Comments for this item

Binding data to a DropDownList with ADO.NET

11 May 2007 22:35

ASP.NET 2.0 MS Access ADO.NET

Using ADO.NET to pull data from the Northwind database (Access version), using the saved query Current Product List.

Click to read more about Binding data to a DropDownList with ADO.NET ...

Viewed 14914 times

0 Comments for this item

Send form content by email in ASP.NET

10 May 2007 22:53

C# ASP.NET 2.0 VB.Net

Using ASP.NET to send the contents of a form by email is a common requirement. This sample looks at generating an email using System.Net.Mail in both plain text and html format from a very basic Contact Us form.

Click to read more about Send form content by email in ASP.NET ...

Viewed 363380 times

36 Comments for this item

ASP.NET and Ajax - using XmlHttpRequest

08 May 2007 17:32

ASP.NET 2.0 AJAX Javascript

If you are not interested in using the ASP.NET AJAX library offered for ASP.NET, but would like to feature small amounts of AJAX functionality on your pages, you can do this easily with some javascript and a receptive page.

Click to read more about ASP.NET and Ajax - using XmlHttpRequest ...

Viewed 79573 times

9 Comments for this item

AJAX and Classic ASP

06 May 2007 23:29

Classic ASP VBScript AJAX Javascript

Using the xmlhttpserver object in javascript to request an asp page containing script to output text.

Click to read more about AJAX and Classic ASP ...

Viewed 80332 times

7 Comments for this item

Analyse the tables and saved queries in an Access database with ADOX

06 May 2007 22:34

Classic ASP VBScript MS Access

The following code will enumerate the tables and their properties, together with the queries in an Access database. Saved SELECT queries are referenced using the Views collection, and INSERT, UPDATE and DELETE queries are referenced from the Procedures collection.

Click to read more about Analyse the tables and saved queries in an Access database with ADOX ...

Viewed 7380 times

0 Comments for this item

How to highlight a GridView's row on hover

06 May 2007 20:50

C# ASP.NET 2.0 Javascript

As the user hovers over each row, it becomes highlighted, with the help of a small amount of javascript.

Click to read more about How to highlight a GridView's row on hover ...

Viewed 18174 times

2 Comments for this item

How to make an ASP.NET Table row highlight and become clickable

06 May 2007 20:38

C# ASP.NET 2.0 Javascript HTML

For those people who like to output their data to an asp:Table, highlighting the entire row and making it clickable can make it obvious to the user that some action is expected from them. This emulates the behaviour that can be found in some desktop applications. All that's needed for this is a bit of javascript, and the use of AddAttributes() for the table rows.

Click to read more about How to make an ASP.NET Table row highlight and become clickable ...

Viewed 91273 times

4 Comments for this item

How to center the content of a web page

05 May 2007 20:48

HTML CSS

This question gets asked very often in the forums and newsgroups, and is very easy once you know how.

Click to read more about How to center the content of a web page ...

Viewed 30799 times

4 Comments for this item

How to force a scrollbar for centered web pages

05 May 2007 20:45

HTML CSS

If you have centered web pages, there can be times where the depth of content doesn't reach the bottom of the window browser, so no scroll bar appears. Navigating between long and short pages can give the appearance of the centered content "jumping" from side to side.

Click to read more about How to force a scrollbar for centered web pages ...

Viewed 7715 times

0 Comments for this item

Include contents of an html page in an aspx page

05 May 2007 20:44

ASP.NET 2.0 HTML

If you are creating a new ASP.NET application, but have a huge collection of existing content in html files, one option is to move all the content into a database and generate pages dynamically. However, migration to a database can be a time-consuming task depending on the volume of content. So wouldn't it be easier to somehow import the relevant parts of the existing html pages into your aspx page?

Click to read more about Include contents of an html page in an aspx page ...

Viewed 67785 times

5 Comments for this item

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 21734 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 204815 times

48 Comments for this item

Recent Comments

Gfw 03/02/2017 09:48
In response to Free SSL Certificates On IIS With LetsEncrypt
I have used WinSimple for about the last 9 months - works great. One thing that you want to make of...

Ted Driver 02/02/2017 13:24
In response to Free SSL Certificates On IIS With LetsEncrypt
This looks great is you have command line access to your web server - what about those of us on Is...

Carl T. 06/11/2016 05:43
In response to Server.MapPath Equivalent in ASP.NET Core
Very succinct and easy to follow. Worked perfectly the first time for me. Thanks!!...

Manoj Kulkarni 04/11/2016 05:47
In response to Entity Framework Core DbContext Updated
Great post....

Sivu 19/10/2016 08:21
In response to Entity Framework Core TrackGraph For Disconnected Data
Oh that's very very very nice ! Thanks for the write up Mike, much appreciated for the taking the to...

Mark 12/10/2016 16:42
In response to ASP.NET Web Pages vNext or Razor Pages
Although "Web Pages" was removed from the roadmap, has it just been renamed to "Razor Pages"?...

Satyabrata 12/10/2016 09:20
In response to Entity Framework Core TrackGraph For Disconnected Data
Nice article. Please write more articles featuring ASP.Net web pages. Thank you...

Julian 26/09/2016 14:27
In response to Loading ASP.NET Core MVC Views From A Database Or Other Location
Fantastic, many thanks Mike! Had got half way down this road before finding your article - saved...

Abolfazl Roshanzamir 14/09/2016 05:36
In response to Loading ASP.NET Core MVC Views From A Database Or Other Location
Nice article. Thanke you so much ....

cyrus 02/09/2016 15:12
In response to ASP.NET Web Pages vNext or Razor Pages
I've got some news. As Damian stated in this link: https://github.com/aspnet/Mvc/issues/5208 “We...