<p>Application Blocks are a collection of libraries from Microsoft. Among the list of components will be the Data Access Application Block. This component can help to save considerable time by allowing you to specify several parameters and definitely will meet most if not all of your data access logic needs.</p>

Using the Microsoft Data Access Application Block

  • 05/06/14
  • ASP.NET

Application Blocks are a collection of libraries from Microsoft. Among the list of components will be the Data Access Application Block. This component can help to save considerable time by allowing you to specify several parameters and definitely will meet most if not all of your data access logic needs.

Read more

<p>Global variables can be set in web.config. In general, these are variables that are not frequently changed.</p>

Web.config AppSettings

  • 05/06/14
  • ASP.NET

Global variables can be set in web.config. In general, these are variables that are not frequently changed.

Read more

<p>Using System.IO.StreamReader to read the contents of a file.</p>

Read a text file in ASP.NET

  • 02/06/14
  • ASP.NET

Using System.IO.StreamReader to read the contents of a file.

Read more

<p>Using the System.IO namespace and CreateText method to create a text file.</p>

Create a text file in ASP.NET

  • 01/06/14
  • ASP.NET

Using the System.IO namespace and CreateText method to create a text file.

Read more

<p>I always get the feeling that there is not much difference between the asp:panel
and asp:placeholder server controls in ASP.NET. The ASP:Panel control
is useful for grouping together other controls or HTML segments. The control
can be thought of as the server side equivalent of the &lt;div&gt; tag. The ASP Placeholder control
can also be used for the same purpose, but there is no HTML output for the control
itself.</p>

ASP Panel v ASP Placeholder

  • 31/05/14
  • ASP.NET

I always get the feeling that there is not much difference between the asp:panel and asp:placeholder server controls in ASP.NET. The ASP:Panel control is useful for grouping together other controls or HTML segments. The control can be thought of as the server side equivalent of the <div> tag. The ASP Placeholder control can also be used for the same purpose, but there is no HTML output for the control itself.

Read more

<p>A common scenario that developers may encounter is to associate many database
   records with a record from another table. The example that I'll use is to
   associate a number of facilities with a particular property. On a webpage,
   the user can insert a property into the database. The page will also have
   a multiselect listbox for the user to associate many facilities with that
   property. The facilities are then stored as a comma delimited string in the
   Properties table.</p>

Database update using multiselect listbox

  • 28/05/14
  • ASP

A common scenario that developers may encounter is to associate many database records with a record from another table. The example that I'll use is to associate a number of facilities with a particular property. On a webpage, the user can insert a property into the database. The page will also have a multiselect listbox for the user to associate many facilities with that property. The facilities are then stored as a comma delimited string in the Properties table.

Read more

<p>The are many tutorials on the Internet that will show how many active users are
  on a website  . But, it can be a bit trickier to extend this to give a list of the active users.
  In the example I going to show you, I will store the users in an XML file. This
  method may not be perfect, but may suit the needs of many.
</p>

Who's online on your Site

  • 27/05/14
  • ASP

The are many tutorials on the Internet that will show how many active users are on a website . But, it can be a bit trickier to extend this to give a list of the active users. In the example I going to show you, I will store the users in an XML file. This method may not be perfect, but may suit the needs of many.

Read more

<p>Sometimes, it is nice to have a text caption embedded into an image, rather than
display the caption in HTML. Fortunately, this is fairly straightforward in ASP.NET.</p>

Add text to Image in ASP.NET

  • 26/05/14
  • ASP.NET

Sometimes, it is nice to have a text caption embedded into an image, rather than display the caption in HTML. Fortunately, this is fairly straightforward in ASP.NET.

Read more

<p>I always have a local copy of websites that I work on. Some people like to put
  the folders inside of the inetpub/wwwroot folder. But, I tend to put my website
into a folder c:\websites and then create virtual directories. </p>

Create a Virtual Directory

  • 26/05/14
  • ASP.NET

I always have a local copy of websites that I work on. Some people like to put the folders inside of the inetpub/wwwroot folder. But, I tend to put my website into a folder c:\websites and then create virtual directories.

Read more

<p>During the development process of an ASP.NET web application, the number of
  stored procedures used can grow alarmingly. More often than not, I forget to
  document
  which stored procedures are being used and which are redundant. So, I decided
  to build a little utility that searched through my source code to find all
  instances of stored procedures being used.
   </p>

Search for Stored Procedures in source code

  • 25/05/14
  • SQL Server, ASP.NET

During the development process of an ASP.NET web application, the number of stored procedures used can grow alarmingly. More often than not, I forget to document which stored procedures are being used and which are redundant. So, I decided to build a little utility that searched through my source code to find all instances of stored procedures being used.

Read more