jalpesh

Stories kicked by jalpesh

ASP.NET Web API Basics(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 2 days, 19 hours ago

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. read more...

add a comment |category: |Views: 4

tags: another

Extract to User Control in visual studio11(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 3 days, 19 hours ago

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 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. read more...

1 comment |category: |Views: 49

tags: another

Browser selection in Visual Studio 11(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 4 days, 19 hours ago

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. Here you will have a list of all the browser installed on your machine and you don’t do ‘View in browser’. And once you click on that it will open up the URL in your selected browser like following. read more...

add a comment |category: |Views: 2

tags: another

Image preview in solution explorer Visual Studio 2011 beta(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 17 days, 19 hours ago

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. read more...

add a comment |category: |Views: 5

tags: another

Css Enhancement in Visual Studio 2011 beta(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 19 days, 18 hours ago

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. read more...

add a comment |category: |Views: 5

tags: another

Go to definition in JavaScript feature of Visual Studio 2011 beta(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 21 days, 18 hours ago

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#. read more...

add a comment |category: |Views: 46

tags: another

Project Dialog in Visual Studio 2011 beta(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 22 days, 18 hours ago

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. read more...

add a comment |category: |Views: 4

tags: another

Visual Studio 2011 Beta First Review.(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 23 days, 17 hours ago

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 going to start a series for few post here and this post also will be part this Visual Studio 20111 beta features series. 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. read more...

add a comment |category: |Views: 10

tags: another

File Upload in ASP.NET MVC3(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 7 days ago

If you are a web developer you often need to upload file on the web server or database. In today’s post I am going explain how we can upload file in ASP.NET MVC 3 with razor syntax. So, first thing we need to create a view that will contain the file upload control. I am going to use an existing asp.net mvc template for this demo. So I have just modified the default Index view like following. read more...

add a comment |category: |Views: 19

tags: another

Difference between SkipWhile and Where in linq(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 10 days ago

Before some time I have written a blog post about the SkipWhile operator and a reader of my blog asked me that we can do the same thing with Where also but there is a difference between this two. So In this post I am going to explain you difference between those two. Where operator filters a list of collection based on condition. It will filter whole collection while SkipWhile will only skip those elements in list until condition is true and after that it will stop filtering of skipping. Now let’s take an example where we can see the difference between Where and SkipWhile. Following is a code for that. read more...

1 comment |category: |Views: 145

tags: another

Tuple in C# 4.0(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 11 days ago

C# 4.0 language includes a new feature called Tuple. Tuple provides us a way of grouping elements of different data type. That enables us to use it a lots places at practical world like we can store a coordinates of graphs etc. In C# 4.0 we can create Tuple with Create method. This Create method offer 8 overload like following. So you can group maximum 8 data types with a Tuple. Followings are overloads of a data type. Create(T1)- Which represents a tuple of size 1 Create(T1,T2)- Which represents a tuple of size 2 Create(T1,T2,T3) – Which represents a tuple of size 3 Create(T1,T2,T3,T4) – Which represents a tuple of size 4 Create(T1,T2,T3,T4,T5) – Which represents a tuple of size 5 Create(T1,T2,T3,T4,T5,T6) – Which represents a tuple of size 6 Create(T1,T2,T3,T4,T5,T6,T7) – Which represents a tuple of size 7 Create(T1,T2,T3,T4,T5,T6,T7,T8) – Which represents a tuple of size 8 read more...

add a comment |category: |Views: 10

tags: another

TakeWhile operator in linq(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 13 days ago

In this post I am going to explain TakeWhile Operator in details. TakeWhile is one of partitioning operator available in Linq. It will take sequence until condition becomes false. read more...

add a comment |category: |Views: 20

tags: another

SkipWhile Method in Linq(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 13 days ago

I have been playing around linq and I have found great method call SkipWhile method. SkipWhile methods skips particular element which matches condition in predicate this can be use full in condition where we need to skip elements on particular condition. So let’s take some example. I have written following console application code. read more...

add a comment |category: |Views: 7

tags: another

Full screen in Visual studio 2010(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 13 days ago

Visual studio is a great IDE and I am learning everyday something new and I have found one great feature today which is available from the Visual studio 2008. So I thought it would great to be share with all you guys. We all like to have most portion of screen to cover code part so we can view all the lines and we don’t have to use page and page down keys to navigate through code. You can have visual studio in full screen mode with View->Full Screen or via pressing Shift + Alter + Enter as shortcut.. read more...

add a comment |category: |Views: 4

tags: another

Multicast delegates in c#(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 14 days ago

In yesterday’s post We learn about Delegates and how we can use delegates in C#. In today’s blog post we are going to learn about Multicast delegates. What is Multicast Delegates? As we all know we can assign methods as object to delegate and later on we can call that method with the help delegates. We can also assign more then methods to delegates that is called Multicast delegates. It’s provide functionality to execute more then method at a time. It’s maintain delegates as invocation list (linked list). Let’s understands that via a example. We are going to use yesterday’s example and then we will extend that code multicast delegates. Following code I have written to demonstrate the multicast delegates. read more...

add a comment |category: |Views: 6

tags: another

Delegates in c#(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 15 days ago

I have used delegates in my programming since C# 2.0. But I have seen there are lots of confusion going on with delegates so I have decided to blog about it. In this blog I will explain about delegate basics and use of delegates in C#. What is delegate? We can say a delegate is a type safe function pointer which holds methods reference in object. As per MSDN it's a type that references to a method. So you can assign more than one methods to delegates with same parameter and same return type. read more...

add a comment |category: |Views: 25

tags: another