A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Friday, May 29, 2009

LINQ the Bridge between the world of Objects & the world of Data

In this article, I will illustrate how LINQ makes the relation between objects and data easy to deal with. I will also use code samples to make a comparison between regular code and LINQ code. ...Full Article.

Using ASP.NET 3.5's ListView and DataPager Controls: Deleting Data

The previous installments in this article series have demonstrated how to display, group, sort, and page through data using the ListView control. In addition to displaying data, the ListView control also provides support for inserting, updating, and deleting data. If the ListView uses a data source control (such as a SqlDataSource or ObjectDataSource) and that data source control is configured to support insert, updating, or deleting, then implementing such functionality in the ListView ...Full Article.

New Webcasts and Podcasts

Broaden your knowledge by listening to podcasts, watching recorded webcasts, or register for an upcoming webcast hosted by industry experts and the product team on current and upcoming technologies....Full Article.

Two New Videos on ASP.NET MVC

Rob Conery concludes the series on the ASP.NET MVC Storefront Starter Kit by adding Domain-Driven Design principles to its architecture....Full Article.

Check Out Ramp Up - a Free Online Learning Program

Ramp Up has just launched 3 *new* ASP.NET tracks. The easy-to-access content (provided by subject-matter gurus) teaches the important skills in a guided path, making the learning process easier and more efficient. Check out www.MyRampUp.com!...Full Article.

June's Toolbox Column Now Online

My  Toolbox column in the June 2009 issue of MSDN Magazine is available online and includes the following reviews:

  • ProjectLocker - ProjectLocker lets you outsource source control, defect tracking, and other common project management tasks to the cloud. Unlike open source hosting sit...Full Article.

When Five Hundred Posts You Reach

. look this good you will not. But man, I tell you, the memory goes.

In the July 1985 issue of Fantasy and Science Fiction, Isaac Asimov wrote:

Yesterday I sat down to write my 321st essay for Fantasy and Science Fiction. [.] It went swimmingly. I was pleased at the ease with which I worked out its construction. It practically wrote itself and I scarcely had to look anything up. I whistled while I worked. An...Full Article.

Why Is The Return Type Parameter Last?

The generic delegate type Func<A, R> is defined as delegate R Func<A, R>(A arg). That is, the argument type is to the left of return type in the declaration of the generic type parameters, but to the right of the return type when they are used. What's up with that? Wouldn't it be a lot more natural to define it as delegate R Func<R, A>(A arg), so that...Full Article.

What Would Tufte Do?

What is this a chart of? I'll post the answer tomorrow.

Tip#65: Did you know...How to quickly create a GridView that is hooked up to a SQL table?

In Tip#64, we showed you how to convert a GridView's bound fields into template fields.  In this tip, we will show you how to quickly create a GridView that is hooked up to a SQL table. 

Typically, if you want a GridView then you need to add it to the page, and then add the datasource and hook the two up through a wizard.  But here's a much quicker way to create and hookup the two.

  1. First, if you don't have a connection to your database, then you will nee...Full Article.

Tip#64:Did you know . How to convert a GridView column from asp:BoundField to asp:TemplateField in Design View?

Assume that you already have a data source SqlDataSource1 that binds to a simple query returning some details from the Customers table.

LIDNUG: Free Online Virtual Chat with Me Today

LIDNUG (Linked .NET Users Group) is hosting an online chat with me today (Wednesday) from 11:30am to 1pm PST (Pacific Standard Time).  Anyone is free to join and the agenda topic will be open - so bring your questions!

Click here to learn more about how to register and attend it.

Hope to chat with you more then,

Scott

Full Article.

Windows Vista SP2 and Windows Server 2008 SP2

The Windows team put up quick work and released the SP2 for Windows Vista and Windows Server 2008 despite the parallel Windows 7 work that has been keeping them busy.   So if you are running Windows Vista SP1 or Windows Server 2008, you can install SP2 released from

Bingo Bing :)

Our new search engine, more than just search, it would be a decision engine.

In a bid to provide better search experiences, we will be releasing a new decision engine next week.  The official name is Bing.  I think it is a cool name and this would definitely improve the traditional experience people find with Search.

Today, people...Full Article.

Error: Could not load file or assembly 'System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The module was expected to contain an assembly manifest.

Recently, I was trouble shooting an error for my friend.  Despite having all the necessary framework and service packs installed, this error "Could not load file or assembly 'System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The module was expected to contain an assembly manifest."  was surfacing, every time we tried connecting to a SQL Server instance using...Full Article.

Monday, May 25, 2009

Google's Philosophy - Ten Things

One of Google's mantras is to never settle for the best. The perfect search engine, says Google co-founder Larry Page, would understand exactly what you mean and give back exactly what you want. Given the state of search technology today, that's a far-reaching vision requiring research, development and innovation to realize. Google is committed to blazing that trail. Though acknowledged as the world's leading search technology company, Google's goal is to provide a much higher level of service t...Full Article.

Parsing Twitter Usernames, Hashtags and URLs with ColdFusion

Some time ago, well almost a year ago actually, I posted an article called Parsing Twitter Usernames, Hashtags and URLs with JavaScript. From that article, it became immediately apparent that this was an issue many people were confronting and one that required an answer. Now, belatedly, it is the turn of ColdFusion to get the Twitter love.

Some time ago, well almost a year ago actually, I posted an article called Parsi...Full Article.

Dynamically creating DeepZoom composition

Explore the process of creating the files to support DeepZoom composition (image pyramids and dz xml files). Assumes a basic understanding of deepzoom. The foundation for the article can be seen on my blog: problog.jamespritz.com. ...Full Article.

DoubleAnimation Basics with Silverlight Application

This article describes the basics of developing an animation application using the Silverlight Application project found in Visual Studio 2008 SP1....Full Article.

Building an Invoice Application with ASP.NET and Crystal Reports - Part 1

In this first part of the series, Vince examines the creation of an invoice with the help of Crystal Reports by using the Adventure Works sample database. He provides detailed coverage of each step including the concept of header and detail records and one to many relationships with the help of relevant screen shots and source code. The article also demonstrates the usage of the Crystal Report Viewer and the Object Model to view the report as a PDF using ASP.NET....Full Article.

Crystal Reports Charting Fundamentals

We all know that what managers like best about reports are the colorful charts. The data presented could mean that the company is struggling for sales, but hey, it is presented in a fancy chart. This article introduces the Crystal Reporting charting basics, and then goes beyond and introduces a way to use third party charting controls....Full Article.

Reporting 101: Understanding the Why, What, and How of Reporting Solutions

This introductory look at reporting clearly establishes what a reporting solution is, how reports differ from documents, and why you should adopt a reporting solution for your organization. Delivering business critical reports has never been more important, and this white paper explains the why, what, and how of Reporting Solutions you need to get the job done....Full Article.

Creating Parameter Fields in Crystal Reports

In this article Mohammad Azam demonstrates the usage of ParameterField in Crystal Reports to manipulate reports at runtime. He examines the concept in a step-by-step manner with a comprehensive explanation and supporting screen shots....Full Article.

Securing ASP.NET Applications

The movie "Hackers" (1995) was spot-on (in being ridiculous.) But security issues are very real to the companies who have to face the fall-out from the compromise of their customer's privacy. This article takes a look at two recent attacks on web applications and how they were perpetrated. Then it dives head first into a litany of different potential security holes and more importantly, how to plug them in ASP.Net....Full Article.

Geographic Data with Crystal Reports

Did you know that Crystal Reports ships with functionality to render geographic data? In recent years the ability to create reports that visually interpret data has become an easy task, and more businesses are asking for more complex functionality, such as reporting on geographic data. This article introduces the Crystal Reporting mapping basics, then goes beyond and introduces a way to use third party mapping controls....Full Article.

Deploying DTS package in SQL Server 2000

One of the challenging activities in working with DTS packages in SQL server 2000 is deployment. Hard coding in DTS objects such as connections would appear inevitable and would require changes every time you deploy depending on the environment. Though Enterprise Manager provides extremely good UI to deploy, it is tedious to deploy using it when there are several packages. This article explains the process of removing hard coding with the help of parametrized global variables and also reading co...Full Article.

Panic on Mt Si

Being that it's a glorious Memorial Day Weekend up here in the Northwest, my co-worker Eilon (developer lead for ASP.NET MVC) and I decided to go on a hike to Mt Si where we had a bit of a scary moment.

Sunday, May 24, 2009

Azure Basics - Say 'Hello' to the Cloud

Shaun shows how to start developing a Windows Azure-based website and shows the steps to deploy that website to the cloud. This is a pretty basic example to help get someone past the basic hurdles of developing for Azure....Full Article.

Understanding the Crystal Reports Object Model

Often times, when developers think about Crystal Reports, they think about a stand-alone designer and reports running in a sandbox. This is a common misconception and often leads to logic placed on reports that should have been handled in code. In this article Jeff discusses the basics of the Report Document Model and Report View Model with the help of comprehensive explanations and screen shots....Full Article.

Examining Various Silverlight Containers

This article looks at the various containers in Silverlight and examines how each container works. It also illustrates combining containers together to facilitate a container's needs and examines the various differences....Full Article.

Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 14

The ASP.NET Toolbox includes two Web controls for managing users' passwords: the ChangePassword control and the PasswordRecovery control. The ChangePassword control allows a user signed into the site to change their password by entering their existing password and their new, desired password. The PasswordRecovery control is used to reset or recover a user's password in the event that it has been forgotten. The PasswordRecovery control is used by anonymous users who need to be reminded of ...Full Article.

An Extensive Examination of LINQ: The Standard Query Operators

Query operators are methods that work with a sequence of data and perform some task based on the data. They are created as extension methods on the IEnumerable<T> interface, which is the interface implemented by classes that hold enumerable data. For example, arrays and the classes in the System.Collections and System.Collections.Generic namespaces all implement IEnumerable<T>. In

An Extensive Examination of LINQ: Using the Query Syntax

LINQ's standard query operators provide dozens of built-in techniques for programmatically enumerating, aggregating, selecting, and filtering data. These standard query operators are implemented as extension functions on the IEnumerable<T> interface and therefore available to any object that implements this interface, which includes arrays, the collection classes in the System.Collections...Full Article.

Dynamically Generating and Caching Images in ASP.NET with the GeneratedImage Control

CodePlex is Microsoft's open source project community and provides a free hosting platform for open source projects created in .NET. Microsoft's own ASP.NET team has its own CodePlex page - aspnet.CodePlex.com - where they give code previews for upcoming releases. There you'll find the ASP.NET MVC 1.0 source code, a preview of the ASP.NET AJAX 4.0 Framework, and other future libraries, frameworks, and controls....Full Article.

Image Transforms with the ASP.NET Generated Image Control

Last week's article - Dynamically Generating and Caching Images in ASP.NET with the GeneratedImage Control - looked at how to programmatically create and cache images on the fly using the GeneratedImage control, one of a suite of "Futures" technologies found in the ASP.NET Team's CodePlex site. Programmatically creating and displaying images entails the use of an HTTP Handler ...Full Article.

Customizing ASP.NET's CreateUserWizard Control To Display a Fixed Set of Security Questions

ASP.NET's Membership system and its associated Web controls enable developers to create websites that support user accounts in a fraction of the time that it once did. In a nutshell, the Membership system and the specified provider handle the low-level details of creating a user account, validating a user's credentials, deleting an account, locking out an account, getting information about the currently logged on user, ...Full Article.

Using ASP.NET Routing Without ASP.NET MVC

ASP.NET MVC is a Microsoft-supported framework for creating ASP.NET applications using a Model- View-Controller pattern. In a nutshell, ASP.NET MVC allows developers much finer control over the markup rendered by their web pages, a greater and clearer separation of concerns, better testability, and clea...Full Article.

MouseWheel Behavior for Silverlight

A demonstration of the MouseWheel behavior to add mouse wheel-based scrolling in Silverlight applications, effortlessly, using Silverlight.FX and behaviors...
[Full post continued here...]...Full Article.

View Model Pattern with .NET RIA Services

Over the weekend, I saw a question on StackOverflow about combining .NET RIA Services and the ViewModel pattern and answered briefly there, but the topic is worthy of a blog post.

At a high level, .NET RIA Services generates a data model for use in the client presentation tier based on the application log...Full Article.

Locate Me and Virtual Earth Sample for Silverlight

A little sample app that uses Silverlight 3, the Virtual Earth Map Control CTP and IP-based geo-coding to implement the Locate Me scenario...
[Full post continued here...]...Full Article.

ViewModel + .NET RIA Services Part 2: Testability, Server Mocking and Dependencies

In Part 1 of ViewModel and .NET RIA Services, which I recommend you check out first if you haven't, I created a simple product search UI using Silverlight and .NET RIA Services using the ViewModel (aka MVVM) pattern. One of benefits of the ViewModel pattern is that it creates a nice contract between the view and associated logic, i.e. a contract between the designer and the developer. Another key benefit of the ViewModel pattern is that it...Full Article.

New Video on Creating a Custom ASP.NET AJAX Control Extender

Microsoft's Joe Stagner demonstrates how to use the AJAX Control Toolkit to create a new custom AJAX Control Extender....Full Article.

Visual Studio 2010 and .NET FX 4 Beta 1 ships!

Today Beta 1 of Visual Studio 2010 and .NET FX 4 are available for download. Use the ASP.NET 4 forum to ask questions about the latest version of ASP.NET and the VS2010 forum to ask questions about the tools. Also, check out the "ASP.NET 4 and Visual Studio 2010 Web Development Bet...Full Article.

New Web Hosting Series!

Scott Mitchell presents the first 6 tutorials in a series that will look at the steps involved in deploying an ASP.NET web application to a production environment managed by a web host provider....Full Article.

Get Started with Visual Web Developer Express 2008!

Visual Web Developer Express 2008 is a free and powerful Web development environment that can help you build, test and deploy Web applications and services. Visit our new Visual Web Developer section to download and get started today. We even have new video tutorials to help you learn with lots more coming soon....Full Article.

New Video on ASP.NET

Chris Pels shows how to add client script events to controls on an ASP.NET page. Watch this and other videos on the Learn page....Full Article.

New Web Hosting Tutorials!

The next 4 tutorials in Scott Mitchell's Web Hosting series cover everything you need to know about deploying your database to your web hosting provider....Full Article.

3 New Visual Web Developer Videos

In the 3 newest additions to his Visual Web Developer Express 2008 series, Microsoft's Joe Stagner demonstrates Master Pages, SOAP based web services and AJAX style services....Full Article.

New Version of the AJAX Control Toolkit

Learn how to use the HTML Editor, ComboBox, and ColorPicker. Download the new AJAX Control Toolkit from CodePlex....Full Article.

Sending ELMAH Errors Via GMail

ELMAH is a free, open source error logging system for ASP.NET created by Atif Aziz. This blog post assumes the reader is already familiar with using and configuring ELMAH. If this is not the case, refer to Simone Busoli's article, ELMAH - Error Logging Modules and Handlers...Full Article.

New Tutorials Series on Hosting

I have a new tutorial series on the www.asp.net website that looks at hosting an ASP.NET website with a web host provider. The tutorials are aimed at beginning to intermediate ASP.NET developers interested in learning the ins and outs on how to get a small- to medium-sized ASP.NET application online. As with my previous tutorials on the www.asp.net website (

May's Toolbox Column Now Online

My  Toolbox column in the May 2009 issue of MSDN Magazine is available online and includes the following reviews:

  • SyncBack Pro - backups are an important part of any IT strategy. For large corporations with established IT departments, backups are automatically performed...Full Article.

Next Four Hosting Tutorials Now Online

The next four tutorials in my Hosting Tutorials on www.asp.net were published over the weekend. These tutorials walk readers through hosting an ASP.NET website with a web host provider and are aimed at beginning to intermediate ASP.NET developers interested in getting a small- to medium-sized ASP.NET application online. The first six hosting tutorials<...Full Article.

In Foof We Trust: A Dialogue

User: The typeof(T) operator in C# essentially means "compiler, generate some code that gives me an object at runtime which represents the type you associate with the name T". It would be nice to have similar operators that could take names of, say, methods and give you other metadata objects, like method infos, property infos, and so on. This would be a more pleasant syntax than passing ugly strings and types and binding flags to ...Full Article.

"foreach" vs "ForEach"

A number of people have asked me why there is no Microsoft-provided "ForEach" sequence operator extension method. The List class has such a method already of course, but there's no reason why such a method could not be created as an extension method for all sequences. It's practically a one-liner:

public static void ForEach<T>(this IEnumerable<T> sequence, Action<T> action)
{ // argument null checking omitted
  foreach(...Full Article.

A Book By Any Other Name Would Smell As Sweet

As you might have gathered from my previous posts on the subject, I occasionally edit technical books as a hobby. It's nice having a hobby that pays money instead of costing money. And I always learn something from every book.

Good Names

Imagine a door with an unusual handle. The handle is five feet off the ground and rotates upwards to open the door. The door has no lock. Is this a good door design?

Sorry. That's not an answerable question. The purpose of almost every door is to prevent something from going through it without preventing everything from going through it. Some doors exist only to mitigate heat loss while allowing anything else through. Some doors exist to keep everyo...Full Article.

Many Happy Returns

Happy birthday Channel Nine! In this episode I finally discover why it is that Charles picked me to be the guinea pig, and I wax verbose on the subject of human brains.

 

...Full Article.

Double Your Dispatch, Double Your Fun

Here's an interesting question I got the other day:

If you have an overloaded operator == then any call to the operator method is "early bound" at compile time according to the compile-time types of the operands. But calling Equals() on an object is a virtual call; the actual method called is bound at runtime according to the runtime type of the receiver. This...Full Article.

Restating the problem

A problem statement:

I am trying to loop though a sequence of strings. How can I determine when I am on the last item in a sequence? I don't see how to do it with "foreach".

Indeed, "foreach" does not make it easy to know when you are almost done. Now, if I were foolish enough to actually answer the question as stated, I'd probably say something like this:

You can do so by eschewing "foreac...Full Article.

Comma Quibbling

[UPDATE: Holy goodness. Apparently this was a more popular pasttime than I anticipated. There's like a hundred solutions in there. Who knew there were that many ways to stick commas in a string? It will take me some time to go through them all, so don't be surprised if it's a couple of weeks until I get them all sorted out.]

Five-Dollar Words For Programmers, Part Five: Reification

Today, another in my series on awesomely arcane words for programmers. Reification is the process of turning something that is normally thought of as an abstract concept into something more concrete. It's from the Latin res facere, "thing making".

<...Full Article.

Tip#63: Did you know.How to specify a fixed port for Visual Studio Development Server while using WAPs?

In Tip#21 we showed you how to set a fixed port for the Developer Web Server in Web Sites.

Here is how you will be able to configure this for Web Application Projects.

1. Go to the properties page of WAP. Right Click on your Web Application and click on Properties in context menu. This will take you to the Properties page.

Reasons for voting on questions and answers

I've recently been involved in a few discussions around voting on Stack Overflow, and I think my own "policy" around it may be different to that of others. I thought it would be worth sharing why I personally vote items up or down, and hear your thoughts too. This blog may not be the ideal venue for such a post, but until such time as we have a real "meta" site for Stack Overflow (such as

Get last-modified header from response in ASP.NET

I’ve been working lately with some ASP.NET performance optimization automation HTTP modules. In one of them I needed to know if the last-modified header had been set through the Response.Cache.SetLastModified(DateTime) method. For some reason, there is no API available anywhere within the BCL to retrieve the last modified date of a response – you can only set it.

Since the module wouldn’t work without a way to read the last modified date of the response, I h...Full Article.

Protecting against XML Entity Expansion attacks

One of the critical responsibilities of every developer and architect is to understand, and know how to prevent, as many kinds of security attacks as possible. While there are many types of attacks and many weapons at our disposal to thwart them, the most basic defence we have is input validation. The rule of thumb really needs to be to assume all input from uncontrolled sources is malicious, unless you can prove otherwise. This includes input from end users, as well as input from other syste...Full Article.

ASP.NET MVC For Visual Studio 2010 Beta 1

I apologize for not blogging this over the weekend as I had planned, but the weather this weekend was just fantastic so I spent a lot of time outside with my son.

the-park

PPTs opening very slowly? – Check your printer drivers - Microsoft Office 2007 PowerPoint

Recently I seemed to have issues with opening PPT files.  I am running Office 2007 for a long time now and one of the things that I use most with respect to my work is PowerPoint files.  Over the last 2 weeks I saw a certain weird behaviour with PPTs specifically related to printer options.

Every time, I try to open the PPT or unlock the system with the PPTs open, they try to print to my d...Full Article.

Some important links

Update for .NET 3.5 SP1 (Important if working with Dynamic Data)

http://support.microsoft.com/kb/959209

ASP.NET Compilation Enhancement Fix

Finding installed version, edition and service pack version of SQL Server

Today I wanted to find the version of SQL Server 2008 installed in my machine.  I did a quick search and the first support article from Microsoft had the answer to it http://support.microsoft.com/kb/321185

I just modified it a little bit wi...Full Article.

Wednesday, May 20, 2009

Events and Races

The Stack Is An Implementation Detail

Events and Races

The Stack Is An Implementation Detail, Part Two

A number of people have asked me, in the wake of my earlier posting about value types being on the stack, why it is that value types go on the stack but reference types do not.

The short answer is "because they can". And since the stack is cheap, we do put them on the stack when possible.

The long answer is. long.

I'll need to give a high-level description of the memory management strategies that we call "stack" and "heap". He...Full Article.

The Stack Is An Implementation Detail, Part Two

A number of people have asked me, in the wake of my earlier posting about value types being on the stack, why it is that value types go on the stack but reference types do not.

The short answer is "because they can". And since the stack is cheap, we do put them on the stack when possible.

The long answer is. long.

I'll need to give a high-level description of the memory management strategies that we call "stack" and "heap". He...Full Article.

Zip Me Up

Suppose you've got a sequence of Foos and you want to project from that a sequences of Bars. That's straightforward using LINQ:

IEnumerable<Bars> bars = from foo in foos select MakeBar(foo);

or, without the query sugar:

IEnumerable<Bars> bars = foos.Select(foo=>MakeBar(foo));

But what if you have two sequences that you want to project from? Say you've got two sequences of doubles t...Full Article.

Zip Me Up

Suppose you've got a sequence of Foos and you want to project from that a sequences of Bars. That's straightforward using LINQ:

IEnumerable<Bars> bars = from foo in foos select MakeBar(foo);

or, without the query sugar:

IEnumerable<Bars> bars = foos.Select(foo=>MakeBar(foo));

But what if you have two sequences that you want to project from? Say you've got two sequences of doubles t...Full Article.

Reserved and Contextual Keywords

Many programming languages, C# included, treat certain sequences of letters as "special".

Some sequences are so special that they cannot be used as identifiers. Let's call those the "reserved keywords" and the remaining special sequences we'll call the "contextual keywords". They are "contextual" because the character sequence might one meaning in a context where the keyword is expected and another in a context where an identifier is expected.*

The C# specif...Full Article.

Reserved and Contextual Keywords

Many programming languages, C# included, treat certain sequences of letters as "special".

Some sequences are so special that they cannot be used as identifiers. Let's call those the "reserved keywords" and the remaining special sequences we'll call the "contextual keywords". They are "contextual" because the character sequence might one meaning in a context where the keyword is expected and another in a context where an identifier is expected.*

The C# specif...Full Article.

Null Is Not Empty

Back when I started this blog in 2003, one of the first topics I posted on was the difference between Null, Empty and Nothing in VBScript. An excerpt:

Suppose you have a database of sales reports, and you ask the database "what was the total of all sales in August?" but one of the sales...Full Article.

Null Is Not Empty

Back when I started this blog in 2003, one of the first topics I posted on was the difference between Null, Empty and Nothing in VBScript. An excerpt:

Suppose you have a database of sales reports, and you ask the database "what was the total of all sales in August?" but one of the sales...Full Article.

Visual Studio Team Test Quick Reference Guide Now Available

http://vstt2008qrg.codeplex.com/

What's included:

  • SETUP CONSIDERATIONS
  • WEB TEST CONSIDERATIONS
  • WEB SERVICE TEST CONSIDERATIONS
  • UNIT TEST CONSIDERATIONS
  • LOAD TEST CONSIDERATIONS
  • LOAD TEST RIG CONSIDERATION
  • PERFORMANCE DATA COLLECTION AND USAGE
  • LOAD TEST RESULTS STORE INFORMATION
  • TEST CU...Full Article.

Visual Studio Team Test Quick Reference Guide Now Available

http://vstt2008qrg.codeplex.com/

What's included:

  • SETUP CONSIDERATIONS
  • WEB TEST CONSIDERATIONS
  • WEB SERVICE TEST CONSIDERATIONS
  • UNIT TEST CONSIDERATIONS
  • LOAD TEST CONSIDERATIONS
  • LOAD TEST RIG CONSIDERATION
  • PERFORMANCE DATA COLLECTION AND USAGE
  • LOAD TEST RESULTS STORE INFORMATION
  • TEST CU...Full Article.

Justinmind Protyper Looks Promising

I'm just about to give http://www.justinmind.com/learn/video_tutorials a try - I'm always on the lookout for these types of tools.  I'll let you know how it goes.

...Full Article.

Justinmind Protyper Looks Promising

I'm just about to give http://www.justinmind.com/learn/video_tutorials a try - I'm always on the lookout for these types of tools.  I'll let you know how it goes.

...Full Article.

Steve and Joel's Daily Scrum

Watch Stephen Forte and I jabber about Scrum at the Microsoft Enterprise Developer and Solutions Conference in New York.

http://entdevcon.telligent.com/sessions/

Lots of other GREAT sessions and partner videos on this site.

Enjoy.

...Full Article.

Steve and Joel's Daily Scrum

Watch Stephen Forte and I jabber about Scrum at the Microsoft Enterprise Developer and Solutions Conference in New York.

http://entdevcon.telligent.com/sessions/

Lots of other GREAT sessions and partner videos on this site.

Enjoy.

...Full Article.

TechEd 09 - Agile an Excuse or a Process?

One of the panels I was on at TechEd in LA this year has been posted - http://www.msteched.com/online/view.aspx?tid=bacf64af-7c4e-4393-ac7f-5106a7745d9a

 

Check it out.

...Full Article.

TechEd 09 - Agile an Excuse or a Process?

One of the panels I was on at TechEd in LA this year has been posted - http://www.msteched.com/online/view.aspx?tid=bacf64af-7c4e-4393-ac7f-5106a7745d9a

 

Check it out.

...Full Article.

A new flag to optimize ASP.NET compilation behavior

Update (4/22/2009)

Actually downloading this fix for 3.5SP1 has been a confusing topic.  Here are links from which you can download it directly without having to call Product Support.  Note that even though the links appear to refer to an unrelated issue, the binaries do in fact contain this fix.  Sorry for the confusion!

For XP and Server 2003:

A new flag to optimize ASP.NET compilation behavior

Update (4/22/2009)

Actually downloading this fix for 3.5SP1 has been a confusing topic.  Here are links from which you can download it directly without having to call Product Support.  Note that even though the links appear to refer to an unrelated issue, the binaries do in fact contain this fix.  Sorry for the confusion!

For XP and Server 2003:

Tip #50: Did you know.How to absolute position the controls in Visual Studio Designer?

Absolute positioning control(s) in the designer can seem confusing at first until you learn the visual cues. You can do one of the following two possible actions by dragging the control in the designer.

  1. Re-parent the control
  2. Change the controls position.

When you drag the body of the control, you are changing the parent of the control.  You can see this because the cursor changes to the small arrow with a square box. 

Tip #50: Did you know.How to absolute position the controls in Visual Studio Designer?

Absolute positioning control(s) in the designer can seem confusing at first until you learn the visual cues. You can do one of the following two possible actions by dragging the control in the designer.

  1. Re-parent the control
  2. Change the controls position.

When you drag the body of the control, you are changing the parent of the control.  You can see this because the cursor changes to the small arrow with a square box. 

Tip #51 Did you know. how to use VS2005 to debug with IE8?

VS2005 does not debug with IE8 by default, due to IE8's LCIE feature ( http://blogs.msdn.com/ie/archive/2008/03/11/ie8-and-loosely-coupled-ie-lcie.aspx).  To enable it, please follow the instruction in this thread:

Tip #51 Did you know. how to use VS2005 to debug with IE8?

VS2005 does not debug with IE8 by default, due to IE8's LCIE feature ( http://blogs.msdn.com/ie/archive/2008/03/11/ie8-and-loosely-coupled-ie-lcie.aspx).  To enable it, please follow the instruction in this thread:

Tip # 52: Did you know... When deploying your ASP.NET web application, debug=false should be set in web.config

To help troubleshoot problems, developers usually enables the debug mode in web.config file. This causes ASP.NET to produce extra information in the compiled assemblies such as debug symbols, metadata. However, performance will be suffered as it takes longer to compile and run, consumes more memory and resource caching is not performed. Therefore, in production, we should set the debugging option back to false to avoid the effect on performance. There are two ways to achieve this.

1) ...Full Article.

Tip # 52: Did you know... When deploying your ASP.NET web application, debug=false should be set in web.config

To help troubleshoot problems, developers usually enables the debug mode in web.config file. This causes ASP.NET to produce extra information in the compiled assemblies such as debug symbols, metadata. However, performance will be suffered as it takes longer to compile and run, consumes more memory and resource caching is not performed. Therefore, in production, we should set the debugging option back to false to avoid the effect on performance. There are two ways to achieve this.

1) ...Full Article.

Tip # 53: Did you know... How to edit the templates for gridview in VS designer?

Gridview control has the flexibility to be configured how it's rendered using templates. Following steps show how the control's edit template can be changed in the Visual Studio Designer.

  • I have a GridView hooked up to Sqldatasource using Northwind.products. I have selected Generate Insert, update and delete statements while configuring the sql data source (by clicking the Advanced button)

Tip # 53: Did you know... How to edit the templates for gridview in VS designer?

Gridview control has the flexibility to be configured how it's rendered using templates. Following steps show how the control's edit template can be changed in the Visual Studio Designer.

  • I have a GridView hooked up to Sqldatasource using Northwind.products. I have selected Generate Insert, update and delete statements while configuring the sql data source (by clicking the Advanced button)

Tip #54: Did you know.How you can turn off intellisense for HTML/ CSS editors

If you would like turn off intellisense in HTML editors (aspx, html files) and CSS editor (css files), you could do so by going to Tools->Options dialog.

For HTML editor, go to Tools->Options->HTML->General. In the right pane, under Statement Completion, uncheck "Auto list members"

Tip #55: Did you know...How to change Start-Up Options and Instances of ASP.Net Development Server in a Multi-project Solution

Tip#56: Did you know. How to update JScript Intellisense manually

Do you like JScript Intellisense feature but have trouble seeing variables or methods you expect to see in JScript Intellisense?  Instead of trying to close files or other work around's you can simply try to “Update Intellisense” command manually before invoking intellisense.

From keyboard:

Ctrl+Shift+j will do it.  Wait for “Updating Intellisense…” message on status bar then try invoking Intellisense again.

Tip#57: Did you know. How to manage web site configuration through a web interface

The Web Site Administration Tool provides a web interface for you to manage different web site configuration settings. To launch the tool, for Web Application Project click Project-> ASP.Net Configuration & for Websites, click Website-> ASP.Net Configuration

 

for Website

Tip #58: Did you know.How you can import/ export HTML Per Tag options in VS?

Tip #59: Did you know.How you can automatically format unformatted HTML on paste in VS?

Do you copy/ paste a lot of unformatted HTML content in to your web forms? Do you always format HTML after pasting such content? There is an easy way to automatically format HTML on paste in VS. Here is how you do it.

In Tools->Options dialog, go to Text Editor->HTML->Miscellaneous page. Check 'Format HTML on paste' option.

...Full Article.

Tip #60: Did you know. How to Profile an ASP.Net site?

1. Create a asp.net web application in Visual Studio Team Edition For Developers

2. Write some code inside Page_Load function

protected void Page_Load(objectsender, EventArgs e)
{
    int sum = 0;
    for(int i ...Full Article.

Tip #61: Did you know. How to create an ASP.Net Dynamic Data Web Site?

If your web site is heavily data driven then here is a quick and easy way for you to create one without writing much code. All you need is Visual Studio 2008 SP1 or Visual Web Developer 2008 Express SP1 installed on your box.

Dynamic Data Web Sites makes use of a mechanism called Scaffolding. When Scaffolding is enabled it lets ASP.Net go through your data model and generate web pages for your tables. These generated pages have Inse...Full Article.

Tip#62: Did you know. How to add Ajax Control Toolkit to the toolbox?

Steps to add Ajax Control Toolkit for Framework 3.5 SP1
Steps to add Ajax Control Toolkit for Framework 2.0


Ajax Control Toolkit for Framework 3.5 SP1

Following are the steps to add Ajax Control Toolkit to the toolbox for ASP.NET 3.5 webs in Visual Studio 2008 SP1

  1. Download Ajax Control toolkit from

RFC: C# in Depth 2nd edition, proposed changes and additions

As I've mentioned in passing before now, I've started working on the 2nd edition of C# in Depth, to roughly coincide with the release of C# 4 and Visual Studio 2010. So far I've just been thinking about what should be added and what should be changed or removed. That's what I'd like to share today, and I'm really eager for feedback. In particular, I'd like to think of three audiences:

  • Developers (possibly hobbyists) who have read one introduct...Full Article.

Language proliferation

I've always been aware that .NET supports multiple languages (obviously) and that Microsoft has been experimenting with this to some extent. It's only recently struck me just to what extent this is the case though.

Here's a list - almost certainly incomplete - of .NET languages from Microsoft alone.

A different approach to inappropriate defaults

I've had a couple of bug reports about my Protocol Buffers port - both nicely detailed, and one including a patch to fix it. (It's only due to my lack of timeliness in actually submitting the change that the second bug report occurred. Oops.)

The bug was in text formatting (although it also affected parsing). I was using the default ToString behaviour for numbers, which meant that floats and doubles were...Full Article.

BlogEngine.NET 1.5 release candidate

Yesterday evening, the BlogEngine.NET team released a release candidate of BlogEngine.NET 1.5. It is available for download at CodePlex.

It is the first time we have made a release candidate, so I hope as many as possible will play around with the bits and report any bugs or issues back to us. It has been tested by all the team members and no breaking bugs where found. However, there is alwa...Full Article.

Monday, May 18, 2009

Add support for iPhone in ASP.NET

When I was building the mobile TV guide I found that there are a couple of things needed to make the website look better on the iPhone and iPod. They both have some extra capabilities that is easy to utilize when you know how.

Zoom level

The first is the zoom level. By adding the meta-tag below, you can specify the viewport to fit perfectly with the iPhone/iPod. The meta-tag tells the Safari browser to zoom in to a specific level as specifie...Full Article.

ASP.NET developer categories

@tomhollander just doesn't get it

I tried. I really did. For five months I've chronicled my daily thoughts and activities for all to see. But despite my efforts, this really only confirmed what I suspected right from the start: that Twitter is really pretty pointless.

Now before you all flame me, I realise that some people do get a lot of value out of Twitter. I'm just not one of them. When I first dipped my toes in the water it became clear that Twitter suffers from a typical "chicken and egg" problem - it's no fun i...Full Article.

BlogEngine.NET 1.5 final release

The BlogEngine.NET 1.5 final release is now available for download at CodePlex. Since the RC1 was released a little more than a week ago, we have had some great feedback from the community - most of it positive, but there were also a few hiccups that needed to be fixed. The BlogEngine.NET team worked very hard on those fixes and I believe they were all taken care of properly.

Our main concern ...Full Article.

ASP.NET is a database framework

I have a very clear view on what ASP.NET is and what it isn't. I've never given it much thought until recently when I learned that my view was different from a lot of other ASP.NET developers'. It started at an ASP.NET session at the MVP summit where a presenter asked whether or not people in the audience used the Entity Framework or Linq2Sql. I thought to myself that data access had absolutely nothing to do with ASP.NET but found to my surprise I was the only one finding it a weird question ...Full Article.

Your guided tour of the Microsoft Solutions Development Centre

When I decided to leave the patterns & practices team to move back to Australia, one of my big concerns was whether I would be able to work on teams with the quality and dedication I experienced on projects such as Enterprise Library. It turned out that my fears were unfounded, as I've found myself working in the most high-performing team I've ever experienced, Microsoft Australia's

My Little World Domination Backup

Every good developer knows to always have a backup. For example, over two years ago, I announced my world domination plans. But there was a single point of failure in me putting all my world domination plans on the tiny shoulders of just one progeny. My boy needs a partner in crime.

TipJar: Title Tags and Master Pages

There are a couple of peculiarities worth understanding when dealing with title tags and master pages within Web Forms and ASP.NET MVC. These assume you are using the HtmlHead control, aka <head runat="server" />.

The first peculiarity involves a common approach where one puts a ContentPlaceHolder inside of a title tag like we do with the default template in ASP.NET MVC:

Using jQuery Grid With ASP.NET MVC

Continuing in my pseudo-series of posts based on my ASP.NET MVC Ninjas on Fire Black Belt Tips Presentation at Mix (go watch it!), this post covers a demo I did not show because I ran out of time. It was a demo I held in my back pocket just in case I went too fast and needed one more demo.

A common scenario when building web user interfaces is providing a pageable and sortable grid of da...Full Article.

Code Sample Taxonomy

What responsibility do we have as software professionals when we post code out there for public consumption?

I don't have a clear cut answer in my mind, but maybe you can help me formulate one. :)

For example, I recently posted a sample on my blog intended to show how to use jQuery Grid with ASP.NET MVC.

The point of the sample was to ...Full Article.

Next Stop, Norway!

Because of all the travel I did last year as well as the impending new addition to the family this year, I drastically cut down on my travel this year. There are only two conferences outside of Redmond I planned to speak at, one was Mix ( see the links to videos of...Full Article.

Scripting ASP.NET MVC Views Stored In The Database

Say you're building a web application and you want, against your better judgment perhaps, to allow end users to easily customize the look and feel - a common scenario within a blog engine or any hosted application.

With ASP.NET, view code tends to be some complex declarative markup stuck in a file on disk which gets compiled by ASP.NET into an assembly. Most system administrators would first pluck out their own toenail rather than allow an end user permission to modify such files.

...Full Article.

I’m a Web Developer At Heart

A while back a young developer emailed me asking for advice on what it takes to become a successful developer. I started to respond,

I don't know. Why don't you go ask a successful developer?

Free ASP.NET MVC "NerdDinner" Tutorial Now in HTML

Last month I blogged about a free end-to-end ASP...Full Article.

ASP.NET MVC 1.0

mvcsource[1] Two weeks ago

ASP.NET MVC NerdDinner Walkthrough

At long last, the book that I worked on with Scott Hanselman,

Donut Hole Caching in ASP.NET MVC

A while back, I wrote about Donut Caching in ASP.NET MVC for the scenario where you want to cache an entire view except for a small bit of it. The more technical term for this technique is probably "cache substitution" as it makes use of the Response.WriteSubstitution method, but I think "Donut Caching" really describes it well - you want to cache everything but the hole in...Full Article.

MIX 09

Two weeks ago we held our MIX conference in Las Vegas.  MIX is my favorite conference of the year - since it nicely integrates development and design topics together in a single event, and is usually accompanied by some pretty cool product announcements.

I gave a first day MIX keynote again this year, and in it I talked about and announced a bunch of new Microsoft web development products.  T...Full Article.

Put Your Pages and Views on Lockdown

lockdownAs I'm sure you know, we developers are very particular people and we like to have things exac...Full Article.

ASP.NET Session State shared between IE Tabs and IE8

 

One of the common problems reported with tabbed browsing in Internet Explorer is that the session state is shared between the tabs.  Sample scenario below:-

1. User A opens an IE instance and logs into a website where a session is created.

2. User A opens another tab and tries to access the same website.  Without logging...Full Article.

Building Interactive User Interfaces with Microsoft ASP.NET AJAX: A Look at JSON Serialization

Web applications commonly exchange information between the client (the browser) and the server (the ASP.NET application). In traditional web applications, this communication is usually insinuated when the visitor submits a form. This prompts the browser to re-request the page, sending the values of the form's inputs through the HTTP POST header. The server then renders the page and returns the entire page's markup, which is then redisplayed. AJAX-enabled web applications streamline this...Full Article.

Tech Ed India – Developer Tracks

I am sure you might have heard that Tech Ed India is happening this year.  If you haven't please check out the MSDN India Blog Post  You can even follow Tech Ed India on twitter ...Full Article.

MS AntiSpyware 2009 is Fake

 

If you recently faced any security alert showing MS AntiSpyware 2009 and possible messages of your computer security being compromised, take a deep breath and cool down.  It is a fake program (spyware) and installs itself with some codec's into your system.

It keeps popping up from your Tray Icon saying that your computer system's privacy is compromised and you would need to acti...Full Article.

My Sessions at Great Indian Developer Summit 2009


It was great to be present at the GIDS this year and I had equal excitement as much the attendees had in hearing from us on our latest technologies.

On the GIDS.Net Day, I presented on ADO.NET Data Services ("Astoria") as well as ASP.NET 4.0 Roadmap.

On the GIDS.Web Day, I presented on ASP.NET, jQuery and AJAX Control Too...Full Article.

My sessions at Tech Ed India

Cannon PI – Title Sequence – Microsoft Web Platform

Twenty 20 Action in my Tech Ed Sessions

Twenty 20 is the happening thing at the moment and most of you attending Tech Ed might worry on missing out watching it, although majority of the matches would happen only in the late evening and you can still catch up after attending TechEd.

However, to keep your Twenty20 interests alive, I am planning to maintain the theme for my sessions around Twenty20.

ASP.NET Sessions at Tech.Ed India 2009

I am back from delivering Tech.Ed India 2009, particularly the web platform track where I delivered three sessions across 2 days.  In addition, we also had Stephen Walther from the ASP.NET Team deliver sessions on ASP.NET 4.0, ASP.NET MVC and ASP.NET AJAX.

Over the next few posts, I would like to get all the content that we discussed during Tech.Ed India...Full Article.

Visual Studio 2010 and .NET 4.0 Beta 1 Download today

 

After the tremendous amount of interest the VPCs of the Visual Studio 2010 and .NET 4.0 generated, the Beta 1 bits would be available for download for MSDN Subscribers later today.  The general public would also be able to download the bits starting this Wednesday.

Visual Studio 2010 combines the power of .NET 4.0 and the tremendous enhancements done to areas such as Web Developm...Full Article.

Originals Enjoy