Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Create iPad-style Web Apps using DevExpress ASP.NET with DXperience v12.1

AddThis Social Bookmark Button
Check out the new "DevExpress Tablet Web Application" file project template and wizard that help you create stunning iPad friendly web projects in just a few clicks: Leverage Your .NET Skills & Tools I've heard from several enterprises that they want to have a mobile tablet experience without: 1. Losing their existing investment in ASP.NET. 2. Trying to find new talented resources to create native app experiences. 3. Or retraining their developers for a specific app platform (iOS, Android, etc.) With the new DevExpress file
template, you can have a functional iPad website in minutes. In fact, we've added fake data in the file template to help you get started by showing you how to data bind the controls.
Creating Applications for the iPad with DevExpress
iOS Guidelines & CSS Styles Apple has specific guidelines for building and styling apps for their platform. When creating this template, we adhere to follow the Apple iOS guidelines so that you can get started fast. And because this is an ASP.NET project, you can simply upload and deploy it to your IIS web server...(Read whole news on source site)

Salt and hash a password in .NET

AddThis Social Bookmark Button
I endeavoured to follow the CrackStation rules: Salted Password Hashing - Doing it Right    public class SaltedHash     {         public string Hash { get; private set; }         public string Salt { get; private set; }         public SaltedHash(string password)         {             var saltBytes = new byte[32];             new RNGCryptoServiceProvider().GetNonZeroBytes(saltBytes);             Salt = ConvertToBase64String(saltBytes);             var passwordAndSaltBytes = Concat(password, saltBytes);             Hash = ComputeHash(passwordAndSaltBytes);         }         static string ConvertToBase64String(byte[] bytes)         {             return Convert.ToBase64String(bytes);         }         static string ComputeHash(byte[] bytes)         {             return ConvertToBase64String(SHA256.Create().ComputeHash(bytes));         }         static byte[] Concat(string password, byte[] saltBytes)         {             var passwordBytes = Encoding.UTF8.GetBytes(password);             return passwordBytes.Concat(saltBytes).ToArray();         }         public static bool Verify(string salt, string hash, string password)         {             var saltBytes = Convert.FromBase64String(salt);             var passwordAndSaltBytes = Concat(password, saltBytes);             var hashAttempt = ComputeHash(passwordAndSaltBytes);             return hash == hashAttempt;         }     }

Warning CS1591: Missing XML comment

AddThis Social Bookmark Button
When you build your solution (or press CTRL+SHIFT+B) in Visual Studio, the output window shows up. Mine was cluttered with ‘warning CS1591: Missing XML comment for publicly visible type or member’ warnings. This makes it less valuable/readable for debugging and optimizing your project/solution. As you might have noticed, I have included a reference to the PayPal service. Which is one of the reasons that there is a lot of XML comments missing. (not my fault, lol) If you are wondering what XML comments are, please view this 5 minute tutorial
to use SandCastle to build HTML documentation for your source code. /// /// A guy with a name, age and a wallet full of bucks /// public class Guy { // ... etc. }   To disable those warnings in your build output window press alt+enter to get the solution/project properties. Go to the build tab on the left and fill in “1591” to suppress this specific compiler warning. This gives you less warnings in the build output window. Of course you can add more warnings to suppress. These are for suppressing missing/bad XML documentation annotations: 1570 -...(Read whole news on source site)

The canvas element – Basic usage

AddThis Social Bookmark Button

The HTML5 Canvas element has its contents rendered with JavaScript. The canvas element makes use of the "context" into which you can issue JavaScript commands to draw anything you want. The canvas is initially blank, and to display something a script first needs to access the rendering context and draw on it. You can obtain the rendering context and it's drawing function by using the getContext method.
var canvas = $('#basic-canvas')[0];
if (canvas.getContext) {
    var context = canvas.getContext('2d');   
Once the context is obtained you can use the beginPath function to a new path, and lineTo, arcTo, arc and similar methods are
used to add segments to the path. The path can be closed using closePath. Once a path is created, you can use fill or stroke to render the path to the canvas.
context.moveTo(this.xpos + this.cornerRadius, this.ypos);
context.lineTo(this.xpos + this.width - this.cornerRadius, this.ypos);
context.quadraticCurveTo(this.xpos + this.width, this.ypos, this.xpos + this.width,
//more code here

if (this.isFill) {
    if (this.isGradient) {
        if (this.gradientLayout == 'Horizontal') {
            context.fillStyle = this.getHorizontalGradient(context);
        else {
            context.fillStyle = this.getLinearGradient(context);
    else {
        context.fillStyle = this.color;
} else {
    context.strokeStyle = this.color;
Here’s a simple example that draws two intersecting rounded corner rectangles. I have uploaded the js class...(Read whole news on source site)

Daily WP7 Development News 14 June 2012

AddThis Social Bookmark Button

Daily Windows 8 Development News 14 June 2012

AddThis Social Bookmark Button
us on Twitter @winphonegeek . (We list the latest Windows Phone 7 development activities.) ...(Read whole news on source site)

NavigationService for WinRT

AddThis Social Bookmark Button
"If I have been able to see further than others, it is because I have stood on the shoulders of giants."
 Isaac Newton It was only 1.5 years ago, but it seems already a long time ago that Laurent Bugnion described a “view service” for Windows Phone navigation, commonly know as the NavigationService. I’ve incorporated this code in my #wp7nl library on codeplex and have been using it happily ever since (and a lot of other people I know have been doing so as well), Time goes on, along
came Windows 8 and WinRT and Metro Style Apps. Laurent ported his MVVMLight framework to WinRT as well. But the NavigationService never has been a core part of MVVMLight (therefore I put it in the #wp7nl library) but porting it as to WinRT was a bit of a hassle. Some of it premises where no longer valid – most notable the way to retrieve the main application frame by accessing Application.Current.RootVisual, which does not work in WinRT. I messed around a little with the code, did not gat anywhere, and left it there. So...(Read whole news on source site)

Federations: What’s Next? Announcements from TechED 2012

AddThis Social Bookmark Button
Federations have been available for 6 months in SQL Azure (now called Windows Azure SQL Database) as of today! In this post, I’ll first cover few of the improvements we have made to the SQL Database Federations and talk about a few of the announcement we made at Teched this week on what’s next for the technology. RECENT IMPROVEMENT AVAILABLE TODAY Improved Latency for USE FEDERATION: One of the recent changes that is key to performance of your scale-out systems is the improvements we made to the “USE FEDERATION” statement. With the improvement the latency
of USE FEDERATION drastically improved. Internally with USE FEDERATION, we now have 2 types of caching. Connection Pool to the Backend: As applications go back to a hot member, with the pooled connections, they won’t have to reestablish new connections from the GW to the DB nodes in the system and will reuse the existing pooled connection lowering latency for the app. Caching of the Federation Map: USE FEDERATION is used for routing your connections to the given federation key value. This information reside in the root database but it is cached...(Read whole news on source site)