Friday, May 25, 2012

ASP.NET Web API Basics

We have seen that now web is really becoming cross plate form and you can see your services or API can be exposed to any client. Till now one of big challenges is to choose platform for this kind of service. There are so many options available like web services, WCF services,Generic Handlers, directly writing responses on aspx page etc. There are plenty of options available and each one has their own pros and cons.  But now we have one simpler answer for that is ASP.NET Web API.

What is Web API?

ASP.NET Web API is a framework for building web API on the top of .NET framework. It’s a framework for building and consuming web services that can be use at broad range of clients like browsers,tablets phones etc. You can expose JSON or XML whatever you want to use.

Why to use Web API?

Think about a situation where a jQuery script that is making a ajax request and we need some thing who can expose data from the server to the client at that time WEB API can be very handy you can expose server data in XML or JSON form and you can make that call with simple http request. No lengthy code required to call WEB API.
Share:
Thursday, May 24, 2012

Extract to User Control in visual studio11

Note: This post will be part of Visual Studio 2012 feature series. As Visual studio 2011 beta is now known as Visual Studio 2012
I have been playing with Visual Studio 11 beta recently and everyday I am amazed with new features of it. Today I have found one more very useful feature Extract to User Control feature.

In large projects, we are having large pages and its always good to use  user control(.ascx) but sometimes we are so lazy to create user controls and we remain with the whole page and even we can’t reuse that code. In similar kind of situation ‘Extract to user control’ can be quite useful. Suppose we have long HTML mark up and we need to convert one div to user control and then we can do it very easily with Visual Studio 11 beta Extract to User Control feature.

You just need to select code you want there in user control and then you need to right click and click ‘Extract to User Control’ like below.

Extract to user control feature- What's new in visual studio 11 features
Share:
Wednesday, May 23, 2012

Browser selection in Visual Studio 11

This blog post will be a part of Visual Studio 2012 features series. As now Visual Studio 2011 beta know as Visual Studio 2012.

In the earlier version of the Visual Studio if you want to run your page in browser then you have to do it with view in browser. But now you have directly that on the Visual studio 2012 toolbar like below.

Visual Studio 2011 beta Broswer selection toolbar

Share:
Thursday, May 10, 2012

Image preview in solution explorer Visual Studio 2011 beta

Note: This post will be part of Visual Studio 2012 feature series. As Visual Studio 2011 beta is known as Visual Studio 2012.

Everyday I am using Microsoft Visual Studio 2011 beta and everyday I learn some cool feature of it. In today’s post I am going to explain one cool features of Visual Studio 2011 beta solution explorer. As a web developer we all want to see the image preview in solution explorer and visual studio 2011 beta is now having it. We can see image preview in solution explorer just like following.
Share:
Tuesday, May 8, 2012

Css Enhancement in Visual Studio 2011 beta

Note:This blog post will be part of Visual Studio 2012 feature series.As now visual studio 2011 beta is known as Visual Studio 2012.
In this post we are going to look at some of CSS enhancement features in Visual Studio 2011 beta. First thing you notice in Visual Studio 2011 is better intellisense for the CSS. Now same kind of intellisense are available which we are using for C# and other languages.

Better CSS Intellisense in Visual Studio 2011 Beta- Features of Visual Studio 2011

Another enhancement is color selection Visual Studio 2011 beta. Now it’s provides a Great Color picker to choose CSS colors as you want. You don’t have to rely on the Hexadecimal value for color.

image

Commenting and uncommenting in CSS is now very easy and can you with formatting toolbar like following.

Commenting and uncommenting features in Visual Studio 2011 beta

That’s it. Hope you liked it. Stay tuned for more..Till than happy programming.
Share:
Sunday, May 6, 2012

Go to definition in JavaScript feature of Visual Studio 2011 beta

Note: Now Visual Studio 2011 beta is officially released as Visual Studio 2012. So it will be part of Visual Studio 2012 series.

In recent days I am exploring the Visual studio features and this blog post is also part of that. I am loving visual studio 2011 beta more and more after exploring features that make developer’s life easy. Today I am going to talk about one of the features that is going to make developer’s life easy.

JavaScript is a client scripting language which is an integral part of any web application now days.  So if you are web application developer you are surely going to write lots of JavaScript those days.  With earlier version of visual studio navigating code in JavaScript is not easy. But in visual studio 2011 beta we have go to definition features which one of most favourite features of visual studio for visual C#.
Share:
Saturday, May 5, 2012

Project Dialog in Visual Studio 2011 beta

This post will be a part of the Visual Studio 2012 Feature Series. As now visual studio 2011 beta is known as Visual Studio 2012 .
Today we are going to look at the New project dialog and some other improvements in visual studio 2011 beta. New project dialog comes with streamlined metro style icons of the project and looks beautiful. You can see some new project templates like portable class library which is a project template for creating dlls which can run on the windows,Silverlight and windows phone 7 and Xbox 360 just like following.
Share:
Friday, May 4, 2012

Visual Studio 2011 Beta First Review.

Note:This post be a part of Visual Studio 2012 feature series. As know Visual Studio 2011 beta known as Visual Studio 2012.

Before some days Microsoft has release visual studio 2011 beta and I have started playing with it. Have you played with it yet? If not then this series of post is for your.

I am basically a developer by heart. So out of latest offering from Microsoft  I am concentrating more on Visual studio 2011,ASP.NET 4.5,C# new features and ASP.NET MVC 4. So here we got let’s load visual studio 2011 beta.
Share:
Thursday, May 3, 2012

DotNetJalps 500th blog post- A milestone achieved.

This is my 500th blog post on this blog and I feel very proud writing this blog post. I am very passionate about blogging and I have been doing more than 5 years.  500th blog post a great achievement and on this occasion first all I would like to thank my family for continuous support they are providing support to maintain blog at regular interval.
Share:

Review of 70-562exam preparation kit from uCertify

Before some time I got an offer from uCertify to review their examination kit. I was lot busy this days so was able to do early but now I have completed review of it. So the first things to do is to download preparation  kit from their website. Here is the link from where I have downloaded this.

http://www.ucertify.com/exams/Microsoft/70-562-CSHARP.html
Share:
Search This Blog
About Me
My Photo

Full Stack Developer,Blogger,Microsoft Mvp, Mentor, Life long learner, 12+ Years of Experience for JavaScript, web and Microsoft technologies. ASP.NET MVC,Web Forms,C#,AngularJs,Golang
Mvp profile
Subscribe to my blog

Enter your email address:

Follow us on facebook
Blog Archive
Total Pageviews