43 items found in the ASP.NET 3.5 Category

Highlighting Keywords Found In Search Results

Saturday, May 22, 2010 7:41 PM

C# ASP.NET 3.5 Extension Method ASP.NET Web Forms

A common question in the forums is how to highlight key words found in search results. Here's an extension method that does that, both for partial matches, or whole word matches.

Click to read more about Highlighting Keywords Found In Search Results ...

Viewed 18659 times

4 Comments for this item

jQuery News Scrollers and Tickers with a ListView

Friday, May 21, 2010 9:12 PM

ASP.NET 3.5 jQuery

The jQuery Cycle plug-in is most often used for creating image slide shows. However, it's just as easy to use to create a news scroller from a ListView. Here, I look a doing just that. I also look at an alternative jQuery plug-in (NewsTicker) that gives the effect of the classic BBC News Ticker.

Click to read more about jQuery News Scrollers and Tickers with a ListView ...

Viewed 19313 times

1 Comment for this item

Displaying The First n Characters Of Text

Sunday, May 16, 2010 9:59 AM

C# ASP.NET 3.5 Extension Method

Displaying the first n characters of a block of text on a page without chopping words off halfway through is a common requirement. There are a number of ways to achieve this, but here's an extension method that you might find useful.

Click to read more about Displaying The First n Characters Of Text ...

Viewed 21451 times

13 Comments for this item

Sessions and Shopping Carts

Monday, May 3, 2010 11:36 PM

ASP.NET 3.5

Managing shopping carts using Sessions is the source of much confusion for beginners to ASP.NET. This article looks at how to do this so that items can be added and removed by customers easily before they commit to their purchase.

Click to read more about Sessions and Shopping Carts ...

Viewed 58596 times

12 Comments for this item

ASP.NET MVC v. Web Forms Debate - My View

Monday, February 22, 2010 9:53 PM

General ASP.NET 3.5 ASP.NET MVC

It seems that the whole world (and Margate) is having its say on which is better - MVC or Web Forms. Scott Guthrie posted his views on technical debates in general, and then contributed his thoughts on MVC v. Web Forms. Ian Cooper has an interesting contribution to make to the debate too. Rob Conery (formerly of Microsoft) posted probably the most linked to opinion on the matter. (There - I've just added another link...) A lot of other blog posts around scream that MVC is better because its better. One even tries to posit the notion that some kind of score card approach can help you decide.

Click to read more about ASP.NET MVC v. Web Forms Debate - My View ...

Viewed 49286 times

12 Comments for this item

Using gacutil.exe and Reflection to generate the Exceptions Cheat Sheet

Wednesday, February 10, 2010 7:28 AM

C# Visual Studio General ASP.NET 3.5

The most recent addition to my Cheat Sheets features details of all the Exceptions that can be found in the most commonly used assemblies within ASP.NET development. Compiling this information was an interesting challenge. I could have simply copy-pasted from MSDN, but that would have been extremely tedious. Instead, I ended up with a blend of Linq to XML, Reflection, a dash of Regex and the Global Assembly Cache Tool - gacutil.exe. Here's the full story.

Click to read more about Using gacutil.exe and Reflection to generate the Exceptions Cheat Sheet ...

Viewed 7621 times

3 Comments for this item

Cheat Sheet - .NET Framework Exceptions

Sunday, February 7, 2010 5:19 PM

C# General ASP.NET 3.5

Here's a list of Exceptions that can be found in the assemblies which are most commonly used in ASP.NET development.  Ideally, you should be as specific as possible when catching or throwing Exceptions. The more specific you are, the less work the CLR has to do in locating the appropriate catch block, and the more informative your error messages are, which should help speed up identifying the source of any problems.

Click to read more about Cheat Sheet - .NET Framework Exceptions ...

Viewed 27125 times

6 Comments for this item

Simple task Scheduling using Global asax

Saturday, January 30, 2010 10:22 PM

ASP.NET 3.5

A frequent requirement for ASP.NET developers is to schedule tasks at regular intervals. This can include site maintenance tasks, like cleaning up old files, emailing newsletters on a schedule etc. This article examines one easy option for managing tasks like these without having to configure external tools, and discusses a couple of alternatives.

Click to read more about Simple task Scheduling using Global asax ...

Viewed 56495 times

18 Comments for this item

Storing Files and Images in Access with ASP.NET

Sunday, December 6, 2009 7:46 PM

MS Access ASP.NET 3.5 ASP.NET Web Forms

Should you store files and images in the database or the filesystem in an ASP.NET application?  With SQL Server this is a dilemma, with both approaches having their pros and cons.  When it comes to Access, the decision is much easier to make.  Because an Access database is restricted to 2Gb, it makes more sense to store files in the file system.  However, sometimes, you may not have the choice. If you have to use the database, here's how.

Click to read more about Storing Files and Images in Access with ASP.NET ...

Viewed 30986 times

7 Comments for this item

Simple File Download Protection with ASP.NET

Wednesday, November 25, 2009 9:09 AM

ASP.NET 3.5 ASP.NET Web Forms

When it comes to protecting files from unauthorised downloading, the vast majority of articles offer solutions that involve mapping common file types (.pdf, .txt, .doc etc) to ASP.NET within Internet Information Services.  However, often in a shared hosting environment, you don't have access to IIS and the hosting company will not agree to providing such mappings for you, so what do you do?

Click to read more about Simple File Download Protection with ASP.NET ...

Viewed 86942 times

28 Comments for this item

What ASP.NET Can And Cannot Do

Monday, November 23, 2009 10:26 PM

Javascript General ASP.NET 3.5

If you are new to web development and choose ASP.NET Web Forms as your starting point, you may be forgiven for not understanding how ASP.NET works, and what its role is. This article covers the basics which should help you discover your limits.

Click to read more about What ASP.NET Can And Cannot Do ...

Viewed 30624 times

3 Comments for this item

Book Review - Professional Enterprise .NET

Wednesday, October 28, 2009 3:49 PM

ASP.NET 3.5 ASP.NET MVC Book Review

I reviewed an ASP.NET Architecture and Design book recently. It was OK. I felt it was a bit thin, and didn't cover topics beyond beginner level. Then I got sent a review copy of another book: Professional Enterprise .NET. Having read it, this is the book that the previous book should want to be when it grows up.

Click to read more about Book Review - Professional Enterprise .NET ...

Viewed 8932 times

3 Comments for this item

Displaying Google Analytics Data in ASP.NET

Monday, October 26, 2009 10:30 PM

ASP.NET 3.5 ASP.NET MVC

If you have a Google Analytics account, you can use the Data Export API provided by Google to access your visitor stats, and retrieve them for use elsewhere. Here's how to display some stats in ASP.NET.

Click to read more about Displaying Google Analytics Data in ASP.NET ...

Viewed 62319 times

20 Comments for this item

Book Review - ASP.NET 3.5 Application Architecture and Design

Sunday, October 11, 2009 6:36 PM

General ASP.NET 3.5 Book Review

Back in the day, when I began to get interested in ASP.NET application architecture and design, I spent hours hunting for a book that would explain all I needed to know.  I wanted one that focused on ASP.NET, with its special demands, rather than a general .NET development book.  I wanted a book that would explain what layers and tiers were, and how I should separate code out to make it more scalable and reusable.  I wanted a book that would explain how I could take my skills to the next level. I couldn't find one.  There was a big gap in the market.  Vivek Thakur has attempted to fill this gap, with this apty named title: ASP.NET 3.5 Application Architecture and Design.

Click to read more about Book Review - ASP.NET 3.5 Application Architecture and Design ...

Viewed 30693 times

3 Comments for this item

Parameterized IN clauses with ADO.NET and LINQ

Monday, September 28, 2009 9:53 PM

C# ADO.NET LINQ ASP.NET 3.5

Since my article on using parameters for Preventing SQL Injection In ASP.NET, I have had a few emails asking how to do the same with an IN clause expression. In this entry, I explore a couple of ways to do this.

Click to read more about Parameterized IN clauses with ADO.NET and LINQ ...

Viewed 34873 times

9 Comments for this item