Quantcast
Channel: Cliff Gray's Blog
Browsing latest articles
Browse All 30 View Live

LINQ to SQL Connection Strings

When using the LINQ to SQL designer surface in Visual Studio, each time you add an object (table, procedure, etc), you will end up adding connection string information to your config file.  This can...

View Article


ASP.NET how to prevent sending emails while developing

There are times when developing that I want to be able to see what the contents will be for emails generated from my application, but I do not want the emails to actually go to the reciepients.  In...

View Article

Delete not working with LinqDataSource

Recently I was working on a custom page in a Dynamic Data project and the "Delete" link was not working on a GridView that had a LinqDataSource as its data source.  Below are the steps I followed to...

View Article

jQuery with ASP.NET selected index changed

Recently I had the need to handle the selected index changed event in an ASP.NET page.  I did not want to post back to the server as I just wanted to hide/show an HTML element, so jQuery was the...

View Article

ASP.NET MVC strongly typed view error Could not load type

I have been doing some work on a asp.net webforms website that has been "upgraded" to also include the mvc bits.  One issue I ran into was an error when trying to create a strongly typed view.  I was...

View Article


LINQ to SQL dynamically set order by

Often I find the need to dynamically specify the order by for a LINQ to SQL query.  I came across a very nice example of this here.  I needed to use this technique with a CSLA class, so I needed to...

View Article

IIS localhost System.Net.Mail.SmtpFailedRecipientsException Unable to relay for

If you do development on your localhost and you want to test email, you can update your web.config as per below.  Note that you will need a directory of D:\Maildrop on your machine.  Doing this will...

View Article

MVC3 Upgrade The type 'System.Web.Mvc.AcceptVerbsAttribute' exists in both

If after following the manual upgrade instructions you receive an error such as "The type 'System.Web.Mvc.AcceptVerbsAttribute' exists in both " you should try the following:  Right click on the web...

View Article


Object reference not set to an instance of an object

The infomous Object reference not set to an instance of an object error occurs when you try to reference or use an object that has not been set to a valid "value" or instance.  For example, let's...

View Article


Using Transloadit for file uploading & processing on your website

Over the years I have used a variety of custom solutions to resize images, encode video, etc.  Transloadit provides a really nice cloud based solution that you can use with any technology stack.  From...

View Article
Browsing latest articles
Browse All 30 View Live