Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

10 Not To Be Missed .NET Articles - July 2008 - .NET Zone

DZone's Guide to

10 Not To Be Missed .NET Articles - July 2008 - .NET Zone

· Database Zone ·
Free Resource

Running out of memory? Learn how Redis Enterprise enables large dataset analysis with the highest throughput and lowest latency while reducing costs over 75%! 

In this months not to be missed .NET articles we cover topics such as multi-language custom controls, troubleshooting linq to sql, the Silverlight 2.0 security model, ASP.NET Ajax development and more, enjoy!

Creating Multi-Language Custom Control

Suppose that we are dealing with a multi-language website: English, French, Chinese, etc. and in some forms we need to enter a username in three languages, each language in a separate textbox. Abdulla's custom control allows developers to add these three textboxs inside a custom multilang control that will reform these textboxes inside a sliding div that displays one textbox at a time for the selected language. This custom control inclu des two icons for each language: one in "on" case, and one for "off" case, so the end user can click in the language image that he wants to enter and the proper textbox will appear in the sliding animation using JavaScript code. He provides a comprehensive explanation of each step involved in developing the control with source codes and screenshots in addition to some of the tips and tricks for advanced functionality.

Troubleshooting (LINQ to SQL)

The following information exposes some issues you might encounter in your LINQ to SQL applications, and provides suggestions to avoid or otherwise reduce the effect of these issues.

Showing some support for LINQ to SQL

While I have finished my series on LINQ to SQL I wanted to talk about some of the reaction. In his summary post of 30 June Roger Jennings mentions his concerns that because the SQL Server Data Programmability group, who are bringing us Entity Framework v1, now owns LINQ to SQL we will not see the kind of development I asked for in my last post of my Architecting LINQ to SQL series. Indeed Matt Warren's comment in this post, that the provider model for LINQ to SQL was disabled before release is troubling for what it implies about internal politics over data access strategies in Redmond and might confirm concerns I had a long time ago.  Looking at the the Data Platform team's blogs and site, LINQ to SQL seems almost forgotten.

How to Customize Expression Media Silverlight Galleries

Expression Media 2 includes support for publishing your catalogs as Silverlight galleries. Felix Andrew, who is the architect for Expression Media, recently wrote a nice article on how to customize one of the samples that is shipped with Expression Blend 2. Felix and I shot an 11 minute video earlier this week where he walks us through the process and shows the end result as well as all the steps in between.

101 LINQ Samples

Not be out done, here are the 101 LINQ Samples for C#.  The interesting thing for someone like myself who has done both VB.NET (actually from VB DOS to VB.NET 2003) and having done mostly C# recently (last 4 years), is the approach that the Visual Basic and C# Teams took.  I prefer the VB.NET way of doing things (I guess I am still biased towards the more Verbose/English-like Syntax of VB.NET over the more terse C# Syntax).  Either way, the good news is that you can get the job done in either .NET Language, and I am assuming that you'll also be able to do LINQ in IronPython (PHP for .NET), IronRuby (Ruby on .NET), COBOL.NET, and all of the other .NET Languages.

The Silverlight 2.0 Security Model

Traditional Web applications are consumed through a special breed of application -- the client browser. Overall, the behavior of the browser hasn't changed much in recent years -- the browser is mostly used to download some content and render it into its client area. When the content is HTML, any embedded JavaScript code will be interpreted and executed. Through JavaScript code, the page author can manipulate elements in the page's Document Object Model (DOM) and trigger remote operations using XMLHttpRequest. In other words, JavaScript is the programming language of the browser and it is used to code any task that the page author wants the page to accomplish.

Testing Around ASP.NET Cache Features

It's still quite painful to try and test code that relies on ASP.NET Caching.  Now, I love caching.  Ask anybody.  But testing around it can pretty much suck.  The biggest source of pain for me at the moment is the SqlCacheDependency, which is freaking awesome in terms of functionality but freaking annoying in terms of testing around it.  I have integration tests that, for some reason, occasionally fail claiming that "table X is not configured for SQL Cache dependency."  This, despite a SQL script that runs before every test and ensures that yes, in fact, those tables are configured. 

How Do I: Add Intellisense to a Language Service?

There are four types of Intellisense that can be implemented in your Language Service.  In this video, Hilton Giesenow demonstrates how to implement two of these in your Language Service - Statement / Word Completion and QuickInfo hover tooltips – by extending a Language Service built on top of the the Managed Babel System infrastructure provided in the Visual Studio 2008 SDK.

The Baker's Dozen: 13 Tips for Building Database Web Applications Using ASP.NET

Are you moving a Windows desktop application to the browser, and sweating bullets, or perhaps just not quite sure about how all the new web and data tools work together? With each passing year, Microsoft offers newer and more powerful tools for building rich database applications on the web. So many and so frequently, in fact, that it can be hard to keep up with the new tools and still meet the requirements of your job! This article will show you how to get the most out of the new features in ASP.NET 3.5. The article will also show how you can use features in LINQ, even if you only use stored procedures for data access. And finally, since most applications use reporting, I'll throw in a few nuggets on using SQL Server Reporting Services.

ASP.NET AJAX Development Approach Part 1

The ASP.NET AJAX framework, along with the AJAX Control Toolkit that adds additional controls, extenders, and other client and server objects, provides a new unique way to develop .NET controls. It leverages the existing structures in JavaScript to create a wide array of add-ons that make developing JavaScript code easier than what it was.

In this article, I plan to review some of the new features available in the JavaScript language that Microsoft added in. I should say now that the additions are not new coding conventions to JavaScript. Rather; all of the approaches utilize all of the existing development structures available in the JavaScript language. The client library works within these constructs to make additional coding styles available. Let’s first look at the available constructs.

 

 

Running out of memory? Never run out of memory with Redis Enterprise databaseStart your free trial today.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}