As we have written earlier we have now multi-core CPU for our computers and laptops and to utilize that we need to use threading in code. Now if we create thread and access same resource at same time then it will create a problem at that time locking become quite essential in any programming language.
Let’s consider a scenario. We are having a small firm of computers and each computer is shared...
Sunday, December 30, 2012
Thursday, December 27, 2012
Merry Christmas to all my readers
This is not a usual technical post I am writing here. I just wanted to take a moment and wishing you Merry Christmas and happy holidays. All readers are has been great support to this blog and on this occasion I want thank you guys for all the support and love you have shown during this year 2012....
Friday, December 21, 2012
Where I can find SQL generated by Linq-To-SQL
Yesterday I have written a blog post about Where I can find SQL Generated by Entity Framework? and same day I got request from one of the our reader Ramesh that how I can find SQL generated by Linq-To-SQL?. I thought its a good idea to write a blog post to share amongst all who need this instead of...
Thursday, December 20, 2012
Where I can find SQL Generated by Entity framework?
Few days back I was optimizing the performance with Entity framework and Linq queries and I was using LinqPad and looking SQL generated by the Linq or entity framework queries. After some point of time I got the same question in mind that how I can find the SQL Statement generated by Entity framework?
After some struggling I have managed to found the way of finding SQL Statement so I thought it would...
Tuesday, December 18, 2012
Caller Info Attributes in C# 5.0
In c# 5.0 Microsoft has introduced a Caller information attribute. It’s a new feature that is introduced in C# 5.0 and very useful if you want to log your code activities. With the help of this you can implement the log functionality very easily. It can help any programmer in tracing, debugging and diagnostic of any application.
With the help of Caller Information we can get following information...
Sunday, December 16, 2012
Parallel task in C# 4.0
In today’s computing world is all about Parallel processing. You have multicore CPU where you have different core doing different work parallel or its doing same task parallel. For example I am having 4-core CPU as follows. So the code that I write should take care of this. C# does provide that...
Sunday, December 2, 2012
Dynamic URL of asp.net web service with web reference
It’s been a while I am writing this. But never late.. So I am writing this. Before some time one of friend asked about the URL of web service when we add reference. So I am writing this. Some of you may find this very basic but still many of people does not know this that’s why I am writing this.
In today’s world we have so many servers like development, preproduction and production etc. and for...
Wednesday, October 10, 2012
Dark Visual Experience in Visual Studio 2012
I have written whole series related to Visual Studio 2012 features and this post will also be part of same series.You can get all my post related to visual studio from the following link.
Visual Studio 2012 feature series
Before some days I was searching something and found a great way to change the...
Wednesday, September 12, 2012
Tips for increasing Alexa rank of your technical blog
Today I am not writing any technical post. This post is out of subject for this technical blog. But the intension of this blog to reach more and more people to help community so I am writing this. In this post I am going to explain few tips for improving Alexa rank for your technical blog.
What is Alexa Rank?
Alexa.com is a private company founded in 1996. They defined themselves as the “Web...
Saturday, September 8, 2012
Predicate delegate in C#
I am writing few post on different type of delegates and this post also will be part of it. In this post I am going to write about Predicate delegate which is available from C# 2.0. Following is list of post that I have written about delegates.
Delegates in C#.
Multicast delegates in C#.
Func delegate in C#.
Action delegate in C#.
Predicate delegate in C#:As per MSDN predicate delegate is a...
Thursday, September 6, 2012
Action delegates in C#
In last few posts about I have written lots of things about delegates and this post is also part of that series. In this post we are going to learn about Action delegates in C#. Following is a list of post related to delegates.
Delegates in C#.
Multicast Delegates in C#.
Func Delegates in C#.
Action Delegates in c#:As per MSDN action delegates used to pass a method as parameter without...
Wednesday, September 5, 2012
Incremental search in Visual Studio
Visual studio is a Great IDE and there are still lots of feature that not known to developers. Incremental search is one of them. This is a amazing feature to find code in particular document and its available from Visual Studio 2010 and carried over in Visual Studio 2012. Incremental search allows...
Saturday, August 25, 2012
Func Delegate in C#
We already know about delegates in C# and I have previously posted about basics of delegates in C#. Following are posts about basic of delegates I have written.
Delegates in C#
Multicast Delegates in C#
In this post we are going to learn about Func Delegates in C#. As per MSDN following is a definition.
“Encapsulates a method that has one parameter and returns a value of the type specified by the...
Friday, August 24, 2012
What is Inversion of control and why we need it?
Most of programmer need inversion of control pattern in today’s complex real time application world. So I have decided to write a blog post about it. This blog post will explain what is Inversion of control and why we need it. We are going to take a real world example so it would be better to understand.
The problem- Why we need inversion of control?
Before giving definition of Inversion of control...
Friday, August 17, 2012
IUnlockJoy I build amazing Windows Phone Apps event –11th August rocks!!

Last Saturday ,11th August Microsoft and Ahemdabad .NET user group has organized the IUnlockJoy I build amazing Windows Phone Apps event. It was first in india as IUnlockJoy campaign was just launched by Microsoft before 3 days. It was superb and well organized thanks to Dhola Mahesh, Prabjhot...
Saturday, July 28, 2012
Multiple file upload with asp.net mvc and HTML5
Few days I have written a blog post about Multiple file upload with asp.net 4.5 and Visual studio 2012. It was greatly appreciated by the community and also been part of www.asp.net community daily spot light. On that post one of my reader Ciwan Kurd has requested the asp.net mvc version of that post. So in this post I will explain how we can do multiple file upload with HTML5.
For this post...
Tuesday, July 17, 2012
Why we should write blogs and do community work
I am doing blogging since last 5 years and I have seen lots of people asking the same things. Why do you write blog? do you have any side income for this blog? Why you are so active in community ? I am answering this questions almost every day. So I decided to write a blog post about it. Following are the reason why I am writing blogs and doing community work?
Help:
I like to help people and...
Model binding with ASP.NET 4.5 and Visual Studio 2012
Note:I have written a whole series of Visual Studio 2012 features and this post will also be part of same series. You can get the whole list of blogs/articles from the Visual studio 2012 feature series posts there. Following is a link for that.Visual Studio 2012 feature series
In earlier version of the asp.net we have to bind controls with data source control like SQL Data source, Entity Data Source,...
Thursday, July 12, 2012
Free Visual Studio 2012 eBook from Telerik
Note:I have been writing lots of things about Visual Studio 2012 and this post is same in the series. You can find complete list of post from the following link.Visual Studio 2012 feature series- What’s new in Visual Studio 2012.
Visual studio 2012 is there in RC stage and I am exploring that into...
Saturday, July 7, 2012
Dividing web.config into multiple files in asp.net
When you are having different people working on one project remotely you will get some problem with web.config, as everybody was having different version of web.config. So at that time once you check in your web.config with your latest changes the other people have to get latest that web.config and made some specific changes as per their local environment. Most of people who have worked things from...
Tuesday, July 3, 2012
Event handler generation in Visual Studio 2012
Note: This post will be a part of Visual Studio 2012 feature series.
There are lots of new features there in visual studio 2012. Event handler generation is one of them. In earlier version of visual studio there was no way to create event handler from source view directly. Now visual studio...
Monday, July 2, 2012
Multiple file upload with asp.net 4.5 and Visual Studio 2012
Note: This post will be part of Visual Studio 2012 feature series.
In earlier version of ASP.NET there is no way to upload multiple files at same time. We need to use third party control or we need to create custom control for that. But with asp.net 4.5 now its possible to upload multiple file with file upload control.
With ASP.NET 4.5 version Microsoft has enhanced file upload control to support...
Sunday, July 1, 2012
Third year in a row- Microsoft MVP again!!
Today is Sunday and I was not expecting this as today is holiday although I know it was Microsoft Mvp renewal day. At evening I got the congratulation email from the Microsoft. Yeah!! I am Microsoft Most Valuable Professional again. I got the same message as a part of Mvp. Thanks Microsoft again.
Dear...
Quick tour of visual studio 2012 features so far
Note: I am writing a whole new feature series about Visual Studio 2012 new features. Following is the link for that. I have written couple of post there.Visual Studio 2012 features series. What's new in Visual Studio 2012
I thought it would be great idea to write summary post for this. So this post will be a summary of all the post I have written so far. Here it will describes what’s new in visual...
Wednesday, June 27, 2012
Interview questions about ASP.NET Web services.
I have seen there are lots of myth’s about asp.net web services in fresher level asp.net developers. So I decided to write a blog post about asp.net web services interview questions. Because I think this is the best way to reach fresher asp.net developers. Followings are few questions about asp.net web services.
1) What is asp.net web services?
Ans: Web services are used to support http requests...
Bundling in visual studio 2012 for web optimization
Note: I have been writing a series of posts about Visual Studio 2012 features. This series describes what are the new features in the Visual Studio 2012. This post will also be part of Visual Studio 2012 feature series.
As we know now days web applications or site are providing more and more features...
Friday, June 22, 2012
Why C# does not support multiple inheritance?
Yesterday, One of my friends, Dharmendra ask me why C# does not support multiple inheritance. This is the question most of the people ask every time. So I thought it will be good to write a blog post about it. So why it does not support multiple inheritance?
I tried to dig into the problem and I have found the some of good links from C# team from Microsoft for why it’s not supported in it. Following...
Thursday, June 21, 2012
Color indication in Visual Studio 2012
Note: This post will be a part of Visual Studio 2012 series.
Before some days Microsoft has released the release candidate version of Visual Studio 2012. Today I got installed Visual Studio 2012 and once I loaded the visual studio 2012 first things I noticed that there is purple color blank strip...
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...
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...
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...
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...
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...
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...
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...
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...
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....
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.ht...
Friday, April 20, 2012
File Upload in ASP.NET MVC3
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 followin...
Tuesday, April 17, 2012
Difference between SkipWhile and Where in linq
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...
Monday, April 16, 2012
Tuple in C# 4.0
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...
Saturday, April 14, 2012
TakeWhile operator in linq
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.
Here is the example for that.
using System;
using System.Collections.Generic;
using System.Linq;
namespace Linq
{
class Program
{
static void Main(string[] args)
{
int[] numbers ={10,9,8,7,6,5,4,3,2,1};
...
SkipWhile Method in Linq
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.
using System;
using System.Collections.Generic;
using System.Linq;
namespace...
Full screen in Visual studio 2010
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...
Friday, April 13, 2012
Multicast delegates in c#
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...
Thursday, April 12, 2012
Delegates in c#
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....
Wednesday, April 11, 2012
Dynamically creating meta tags in asp.net mvc
As we all know that Meta tag has very important roles in Search engine optimization and if we want to have out site listed with good ranking on search engines then we have to put meta tags. Before some time I have blogged about dynamically creating meta tags in asp.net 2.0/3.5 sites, in this blog post I am going to explain how we can create a meta tag dynamically very easily.
To have meta tag dynamically...
Monday, April 9, 2012
Creating dynamic breadcrumb in asp.net mvc with mvcsitemap provider
I have done lots breadcrumb kind of things in normal asp.net web forms I was looking for same for asp.net mvc. After searching on internet I have found one great nuget package for mvpsite map provider which can be easily implemented via site map provider. So let’s check how its works. I have create a new MVC 3 web application called breadcrumb and now I am adding a reference of site map provider via...
Saturday, April 7, 2012
Execute TSQL statement with ExecuteStoreQuery in entity framework 4.0
I was playing with entity framework in recent days and I was searching something that how we can execute TSQL statement in entity framework. And I have found one great way to do that with entity framework ‘ExecuteStoreQuery’ method. It’s executes a TSQL statement against data source given enity framework context and returns strongly typed result.
You can find more information about ExcuteStoreQuery...
Wednesday, April 4, 2012
Ternary operator in VB.NET
We all know about Ternary operator in C#.NET. I am a big fan of ternary operator and I like to use it instead of using IF..Else. Those who don’t know about ternary operator please go through below link.
http://msdn.microsoft.com/en-us/library/ty67wk28(v=vs.80).aspx
Here you can see ternary operator returns one of the two values based on the condition. See following exampl...
How to pad number with leading zero with C#
Recently I was working with a project where I was in need to format a number in such a way which can apply leading zero for particular format. So after doing such R and D I have found a great way to apply this leading zero format.
I was having need that I need to pad number in 5 digit format. So following is a table in which format I need my leading zero format.
1-> 00001
20->00020
300->00300
4000->04000
50000->5000
So...
Tuesday, March 27, 2012
Important Mile stone achieved–I got 4,00,000 visitors for my blog
I have written this blog more than 5 years now and today I got one great news from sitemeter.com that I have achieved 4,00,000 visitors milestone. I would like to take this opportunity to thanks all the my readers for everything. I got nice appreciations from people around me and that’s encourage me to write more blogs.
Following is a screenshot of my blog statistics from sitemeter.co...
Saturday, February 4, 2012
Number- New HTML5 Input type
I have been writing few series of new HTML5 input types and this is another post on same series. In this post I am going to explain Number input types. The number type is for numeric values. When you use number input type it will have spinner with up and down arrow and with the help of this you can increase or decrease of value.
Attributes of Number Input type:
There are four attributes of Number...
URL–New HTML5 input element
In earlier post we have seen how the email input tag work in the browser. HTML5 comes with lots of new goodies and today we are going to see one of another new html5 input types URL.
In most of the sites once you fill your contact and personal information it will ask for your URL. Till now there is no specific type for URL and we have to manually validate the URL with the Java Script but now with...
Sunday, January 29, 2012
Email-New Html5 input element
In most of the websites we have contact forms and other forms where we have some standard inputs like Phone,Email and Website URL and those are widely used in any site and has specific features. Email is one of the most standard used input elements which are used in our forms. Till HTML 4.1 we have standard input type text and that’s for we were doing input validation with java script and other technologies....
My first video for code refactoring in visual studio 2010
I have been planning this since long but now Its happened. I have created a video for visual studio 2010 code refactoring features. I have made this video public. Following is a link for that.
http://www.youtube.com/watch?v=HvC63rE7tB4&feature=share
Here is the video..
img alt="" galleryimg="no"...
Sunday, January 8, 2012
string.format escape sequence in c#
Recently I was working on something and I need to put a curly bracket on the string with a string.format function but I was not aware how to to do it. So I did some search on internet and found how to give escape sequence in string.format. Suppose You need to put curly bracket then you have write two...
Saturday, January 7, 2012
Difference between generic handler and http handler- ASP.NET
Generic handler:As per MSDN Generic Handler is a default handler which will have @webhandler directive and has .ashx extension this generic handler is not having UI but it provides response when ever any request made to this handler.
HTTP Handler:HTTP Handler is a process which runs and continue...
how to vertically middle align text in div-HTML tip
Recently in one of the project I have to vertical align text in div. so doing some internet search I have found there are no proper way to do it. So I thought it would be good do share this within my readers.
Here is the code do vertically align text in div.
<div style="width: 25%;border:solid...
ASP.NET Page Methods with Parameters
In earlier post I have written how we can use page methods to call server-side from the java script. In this post I am going to explain How we can pass parameters to page methods with java script.
So let’s take a simple example to see how we can pass parameters to the page methods. I am going to create...
2011 Recap and Greatest hits
2011 year has been ended before so its time to write the year recap blog post.First of all I like to wish my friends,reader and everybody a happy new year. This year was very exciting in some way for this blog. First thing was happened that I have moved from blogspot domain to my own domain http://www.dotnetjalps.com....