Jeff Widmer's Blog
ASP.NET, ASP.NET MVC, C#, VB.NET, IIS7, Windows Forms, VB6, ASP 3.0
Browse by Tags
All Tags
»
C#
(
RSS
)
.NET
ASP.NET
ASP.NET Membership
ASP.NET MVC
GDI+
HTTPS
IEnumerable
Jpeg
Linq
Linq2Sql
ListView
QuickBooks
QuickBooks Online Edition (QBOE)
Sample Code
SEO
SQL
SQL Server
SSL
System.Collections.Generic
System.Drawing
System.Net.Mail.MailMessage
Tiff
Tips & Tricks
Tips & Tricks
Visual Basic
Visual Studio
How to switch between HTTP and HTTPS in ASP.NET MVC2
ASP.NET MVC2 has the new RequireHttpsAttribute that you can use to decorate any action to force any non-secure request to come through HTTPS (SSL). It can be used as simply as this: [RequireHttps] public ActionResult LogOn() { ..... } Now any request...
How to implement ISNULL(SUM(ColumnName),0) in Linq2SQL
I had a Linq2Sql statement like this: var q = from o in db.OrderItem where o.UserId == UserId select o.Amount; And then I was trying to get the sum of the OrderItem.Amount column by doing this: total = q.Sum(); This worked fine as long as there were rows...
Linq2Sql: How to join tables on more than one column
You can join two tables in Linq2Sql by using an anonymous type to specify the join. var r = from o in db.Orders join p in db.Products on o.ProductId equals p.ProductId join pu in db.ProductUsers...
How to 301 Permanent Redirect in ASP.NET
In the next release of the .NET Framework (.NET Framework 4.0) there is a new response method for permanently redirecting a request: Response.RedirectPermanent . You can see the Beta MSDN documentation for Response.RedirectPermanent here . This will automatically...
How to get an indexed item of an IEnumerable object (Linq)
If you have an IEnumerable<T> collection of some objects T and you need to get a particular item out of that collection, you cannot use the standard indexing that you would normally use with brackets ([index]). If you try you will get an error...
Line-breaks and carriage returns (\r \n) are invalid in email subject
I received this exception when sending an email using System.Net.Mail.MailMessage: "The specified string is not in the form required for a subject." System.ArgumentException: The specified string is not in the form required for a subject. ...
GDI+ Error when converting Tiff to Jpeg: Parameter is not valid
One of the web applications that I work on is Instant Church Directory , a website that helps churches create a church photo directory . Since the main focus of the application is to create a photo directory, customers are uploading all sorts of...
Handle the button click event from an ASP.NET ListView control
Here is how you can handle the event of a button from within an ASP.NET ListView control. Add your button to the ListView Template like you would any other control: <asp:ListView ItemPlaceholderID="Test" runat="server" ID="ListView1"...
Generating a random strong password
You can use the ASP.NET Membership provider to generate a new random strong password. In the past I have usually either rolled my own authentication system or integrated an asp.net authentication system into an existing application and therefore I did...
How to quickly format a C# class file – Ctrl-K, Ctrl-D
In C# as you are typing in a class file the indenting of your code can easily get out of alignment making the code hard to read. Where does your class, if block, or method begin and end?? You can manually go and fix each line but there is a much...
More Posts
Next page »
Search
Go
This Blog
Home
Contact
About
News
Jeff Widmer's Home Improvement Profile
OrcsWeb Windows Cloud Servers
Vaasnet - Instant pre-configured virtual machines:
IE6 Virtual Machine
IE7 Virtual Machine
IE8 Virtual Machine
Firefox 3.6 Virtual Machine
Firefox 4 Virtual Machine
SharePoint Foundation Virtual Machine
Tags
.NET
.NET 4.0
.NET Target Framework
Amazon
ASP.NET
ASP.NET Membership
ASP.NET MVC
AspNetHostingPermission
Automated Build System
BabySmash
Bing
C#
Canon Scanner CanoScan Toolbox
CMS 2002
Community News
CruiseControl.NET
CSS
Elmah
executionTimeout
GDI+
General Software Development
Getting Things Done
Gmail
Google
GTD
Headsets
Home Improvement
HTML
HTML Tips and Tricks
httpRuntime
HTTPS
Hyper-V
IEnumerable
IIS
IIS App Pool
IIS6
IIS7
IIS7 Authorization
Instant Church Directory
jQuery
Linq
Linq2Sql
Machine Setup
OneNote
Orchard
osql.exe
Outlook
Outlook 2010
Personal
QuickBooks
QuickBooks Online Edition (QBOE)
random.org
Recommendations
Remote Desktop
Sample Book Chapter
Sample Code
ScrewTurn Wiki
Seinfeld
SendTo
SEO
Sharepoint
SharePoint 2010 Correlation ID
SharePoint Foundation 2010
SharePoint Workspace 2010
Silverlight
SMTP
SourceGear
SQL
SQL Azure
SQL Script
SQL Server
SQL Server 2008
SQL Server Full-text Index
SQL Server Management Studio
SSL
StackOverflow
Subversion
SVN
Tiff
Tips & Tricks
Tips & Tricks
Unicode encoding
User Account Control
Utilities
Vaasnet
VB.NET
VB6
Viral Marketing
Virtual Machines
Visual Basic
Visual Basic 6.0
Visual Studio
Visual Studio 2010
web.config
WebConfigurationManager
Windows 7
Windows Azure
Windows Character Map
Windows Server 2008
Windows Server 2008 R2
Navigation
Home
Blogs
Archives
December 2011 (1)
November 2011 (4)
October 2011 (1)
June 2011 (3)
May 2011 (3)
March 2011 (1)
February 2011 (3)
January 2011 (2)
December 2010 (2)
September 2010 (3)
August 2010 (4)
July 2010 (3)
May 2010 (5)
April 2010 (2)
March 2010 (5)
February 2010 (8)
January 2010 (8)
December 2009 (14)
November 2009 (5)
October 2009 (15)
September 2009 (17)
August 2009 (6)
June 2009 (2)
May 2009 (3)
October 2008 (1)
August 2008 (1)
December 2007 (3)
November 2007 (1)
August 2007 (1)
April 2007 (1)
March 2007 (1)
September 2006 (1)
August 2006 (1)
January 2006 (1)
December 2005 (3)
September 2005 (1)
August 2005 (1)
July 2005 (2)
October 2004 (1)
March 2004 (1)
February 2004 (2)
January 2004 (6)
Recommended Blogs
Scott Guthrie
Day Dream Land
Vaasnet Blog
Syndication
RSS
Atom
Comments RSS