Right now everybody is talking about HTML5 and its contains lots of new features like web sockets, canvas, new intput types with validation etc.
ASP.NET 4.5 text mode property enhancement:
With HTML5 new input types is going to be one of coolest feature and in future more and more people are going to use that feature. So in asp.net 4.5 asp.net development team given a support via TextMode property...
Monday, March 25, 2013
Saturday, March 23, 2013
Difference between All and Any operator in linq
In this post we are going to learn about difference between ‘All’ and ‘Any’ operator in Linq.
Difference between ‘All’ and ‘Any’ operator:
All operator checks whether all elements have met specific conditions or not while Any operator check whether there is any elements exist in collection or not?
So what we are waiting for Let’s take a example.
using System;
using System.Linq;
namespace...
Friday, March 22, 2013
My blog post appears on asp.net community spot light
Once again my blog post about CRUD operations with asp.net and petapoco appears on the Microsoft asp.net official website. I would like to thank you all for specially Jon Galloway and asp.net team.
A big thank you for every one for supporting ...
Saturday, March 16, 2013
All operator in linq
Few days back I came across “All” operator in Linq. I thought it will be good idea to write a blog post about it and share it with community.
All operator in linq:It’s almost similar to select it returns all the element in the input sequence with matching condition in given predicate. Following is syntax for All.
public static bool All<TSource>(
this IEnumerable<TSource> source,
Func<TSource,...
Thursday, March 14, 2013
CRUD operations with PetaPoco and ASP.NET MVC
In this post we are going to see how we can do CRUD operations with ASP.NET MVC and PetaPoco Micro ORM.
What is PetaPoco?
Petapoco is a tiny ORM developed by topten software. As per them it’s a tiny, fast, single-file micro-ORM for .NET and Mono.
Like Massive it's a single file that you easily add to any project
Unlike Massive it works with strongly typed POCO's
Like Massive, it now also...
Wednesday, March 13, 2013
Default focus and default button in asp.net
Sometimes ago a friend ask me how to put default focus and default button in ASP.NET. He was not knowing that there is property for that in form tag in asp.net. I thought it will be good idea to write a blog post about that.So those who are not aware of this feature can get an idea for that.
In some cases we need to have default button and default focus. For example take a example of a shopping cart...
Sunday, March 10, 2013
How to consume ASP.NET WebAPI from jQuery
Before some months Microsoft has launched WebAPI framework for building and consuming HTTP services. This WebAPI can be called from anything like from mobile sites to JavaScript anything. I thought it will be a good idea to call a WebAPI from jQuery.
In this post I am going to explain how to consume...
Friday, March 8, 2013
Dependency graph in visual studio 2012- Understand your code better.
Today I came across a new feature of visual studio 2012 called Dependency Graph in visual studio 2012. I thought it will be good Idea to write a blog post about this.
I have written list of visual studio 2012 features post. You can find this at my Visual Studio 2012 page.
What is Dependency Graph?Dependency graph help you visualize how your code is written and organized and provide view on code...
Thursday, March 7, 2013
SelectMethod in ASP.NET 4.5 Model binding
New version of ASP.NET provides lots of way of binding data to the data controls like Grid View, Repeater etc. You can now bind this controls with strong type. I have earlier written a blog post about How we can use Model binding with ASP.NET 4.5 and Visual Studio 2012.
SelectMethod in ASP.NET 4.5:
In asp.net 4.5, It is also possible to bind controls with SelectMethod attribute. This method specify...
Wednesday, March 6, 2013
Telerik JustCode review
Visual Studio is a great IDE and allow developers to design and code anything from windows application to web application. But it does not have a much code refactoring features so You need to have third party add in to make this happen. Telerik JustCode is one of them.
Recently I was contacted by Telerik team to review Telerik JustCode. So I installed Telerik Just code in my machine and I have...
Tip- InProc session state was not working with IIS7.5
In this post I am going to explain about reason for InProcsessionState was not working with IIS 7.5.
Problem:Yesterday in one of my PC I got updated IIS 7.5 and suddenly after updating the IIS my ASP.NET application session state stopped working. It was a very weird behaviour and after doing some R and D I have found that my worker process per application was more then one.
That was the reason for...
Sunday, March 3, 2013
Page inspector in Visual Studio 2012
In this blog post we are going to learn about a new feature of Visual Studio 2012 called “Page Inspector”.
I have written whole series about new features of Visual Studio 2012. This post will also be part of it. You can find all post related to Visual Studio at my Visual Studio 2012 page. Following is a link for that.
Visual Studio 2012 Feature Series
What is Page Inspector:Page inspector...
Video about different searching options in visual studio 2012
I have created a video tutorial for Visual studio 2012. Where I have shown different kind of searching options.img alt="" galleryimg="no" onload="var downlevelDiv = document.getElementById('3d5bc565-83ec-4a4a-a2d0-f4d7df8a735a'); downlevelDiv.innerHTML = "";" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxnm5jC_LzAgUBkn3CQ9XWWTQA_a6i9PjIaJPpL48_JVIUAtvFkRNty5W7VYEhaWHfI2Hvg9RjWojJz5Hui7g_7hgBTqX792ZOSMy9QWzIhCsBjDjUsSmnXjFtN2YBWN7aA-aq/?imgmax=800"...