Browse by Tags

All Tags » Tips and Tricks (RSS)

AJAX Tip: Don't forget about the Async Web Service Calls! by Jason N. Gaylord

FireFox. Internet Explorer 8. Both have great JavaScript debugging tools. Thanks to those tools, I only spent 5 minutes on an issue that could have taken hours to figure out. It was one of those moments when you know its something simple but you can't...

Performance Tip: Return Only Necessary Columns Using LINQ by Jason N. Gaylord

I was running into an issue where one of my webmethods was taking a large amount of time to return a small set (5-10 objects). I was using LINQ to SQL. I noticed that the LINQ to SQL query was returning all of the rows. After looking into the table a...

Adding QueryString Parameters to the SiteMapNode by Jason N. Gaylord

There is no way to add querystring parameters to the SiteMapNode in a SiteMap control "out of the box." I'm quite surprised there is no option but luckily the SiteMap uses the provider model. After a Live search, I was able to find a solution...
Filed under: ,

Retrieving SQL Type Image Using LINQ by Jason N. Gaylord

LINQ views the Image type in SQL Server as Binary. So, there are a few options that we have. We can either (a) modify our LINQ to SQL class and change the property to Byte() instead of Binary or we can (b) convert the Binary to an array. To do the latter...

Force Your Web Site To Be IE8 Compatible by Jason N. Gaylord

Microsoft recognizes that it will be difficult to have all sites use the latest HTML and CSS specs that are found in IE8. To accommodate the web sites that cannot be converted at this time, they've created a work around. There are two options: a) you...

Aggregate Functions in LINQ by Jason N. Gaylord

I found a great post which summarizes aggregate functions in LINQ. It includes examples for Average, Sum, and Count. Check it out at http://www.dev102.com/2008/04/16/how-to-use-aggregate-functions-with-linq-to-sql/ . As always, you can test your functions...

Writing a Base64 String to the File System or Browser by Jason N. Gaylord

Quite often, vendors pass images or PDFs to customers using the binary contents of the file. To make it more secure, they convert the binary contents to a Base64 string. A full explanation about Base64 encoding can be found at Wikipedia here . Anyway...

Using the new Email Functionality in ASP.NET 2.0 by Jason N. Gaylord

By now, many of you have come to realize that Microsoft has changed the way we send email from ASP.NET 1.1. In this article, I'll examine the various aspects involved with sending emails in ASP.NET 2.0. You can read the article by visiting: http:...

VSIBuilder Version 1.0 Released by Jason N. Gaylord

I needed a way to programatically create a vscontent and vstemplate file for a few large web projects. So, I created a VB 2005 app that does just that. Earlier today I decided that I'd clean it up a bit, throw in a sponsorship plug, and create a click...

Tip: Create the SQLExpress database on an ASP.NET application by Jason N. Gaylord

Many developers have asked how to create the SQLExpress database from an *.aspx page. Without creating or updating anything, a simple call to Membership.GetAllUsers.Count will do the trick. Your SQLExpress database will be generated in no time.
More Posts Next page »