Shortcuts


ASP.NET: Shortcut: No more hard coding the physical path to your access database in the ConnectionString section of your web.config

If your database is located in the App_Data folder of your web application. Here is a neat little shortcut for your Access Database ConnectionString.

0 Comments   Posted by LazyAssCoder on Jun 16, 2008   549 Views  


C#: Shortcut: Use the @ Symbol instead of escaping slashes

We all had to at one point or another modify a file path and escape the slashes before pasting it into our code or into a database table. Using the @ symbol in front of the string will eliminate the need to modify the path.

0 Comments   Posted by LazyAssCoder on Jan 29, 2008   367 Views  


ASP.NET: How To: Configure Simple Mail Transport Protocol (SMTP) settings in web.config

Does your ASP.NET 2.0 application sends email, here is a shortcut to configure the SMTP settings in the web.config.

0 Comments   Posted by LazyAssCoder on Nov 19, 2007   149 Views  


VB.NET: Shortcut: Writing a condition statement on one line in VB.NET

A shortcut way of writing a condition statement in VB.NET

0 Comments   Posted by LazyAssCoder on Aug 01, 2007   126 Views  


ASP.NET: Shortcut: Set a default button on your ASP.NET 2.0 web forms

In the pass, we used to write Javascript to allow hitting the Enter key to submit a form. Now in ASP.NET 2.0, Microsoft have introduced a simple way to set the default button.

0 Comments   Posted by LazyAssCoder on Jul 23, 2007   148 Views  


ASP.NET: Shortcut: Parsing dates (ASP.NET 2.0)

Parsing text strings into dates is even more easier in ASP.NET 2.0.

0 Comments   Posted by LazyAssCoder on May 28, 2007   97 Views  


ASP.NET: Shortcut: Explicitly set a control property to read a value from a local or global resource file (ASP.NET 2.0)

Here is a quick way in the ASPX file to set a control property to read from the resource file.

0 Comments   Posted by LazyAssCoder on Apr 24, 2007   74 Views  


ASP.NET: Shortcut: Register a Master Page in the Web.config (ASP.NET 2.0)

An easy and clean way to apply one master page to an entire site is by adding the master page reference in the Web.config.

0 Comments   Posted by LazyAssCoder on Apr 17, 2007   104 Views  


ASP.NET: Shortcut: Test for null or empty string (ASP.NET 2.0)

Shortcut to test for null or empty string in ASP.NET 2.0

0 Comments   Posted by LazyAssCoder on Apr 11, 2007   86 Views  


.NET: Shortcut: Conditional (Ternary) Operator in C#

Conditional (Ternary) Operator (?:) in C#

0 Comments   Posted by LazyAssCoder on Mar 17, 2007   105 Views  


C#: Shortcut: Coalesce Operator in C#

Coalesce Operator(??) in C#

0 Comments   Posted by LazyAssCoder on Mar 17, 2007   215 Views