Posts

Showing posts from July, 2013

Enhanced Scroll bar in Visual Studio 2013

Image
In this post we are going to learn about Enhanced scroll bar in visual studio 2013. This part will also be part of Visual Studio 2013 feature series.

Once you start the Visual Studio 2013 and start the code window you can see the enhanced scroll bar. Where you can find the glimpse of your code.


Visual Studio 2013 : Peek Definition a new feature

Image
In this blog post We are going to look into the a new Visual Studio 2013 feature called Peek Definition another way of Go to definition.

This post will be part of Visual Studio 2013 feature series

Peek Definition in Visual Studio 2013: In the earlier version of Visual Studio, When we need to see the definition of method then we can to right click that method and then click on Go To Definition(F12) and then code will be navigate to that method.

Synchronized settings with live account Visual Studio 2013.

Image
In this post we will learn about Synchronized setting with Visual Studio 2013 .  I am writing a series of blog post about Visual Studio 2013 features. This post also will be part of this series. You can find complete list at following link.

Visual Studio Page on DotNetJalps.com

In the earlier versions of Visual Studio, To import settings and export setting we have to import and export setting manually. There is no way it will directly set the setting with all the Microsoft Visual Studio PC’s. But now with Visual Studio 2013 Synchronized settings feature you can sync all the settings with your live account. So if you have applied one settings one computer and you want to apply the settings in another computer you don’t have to worry about it. Let’s see how its works.

Visual Studio 2013 Preview Step by Step Installation

Image
This post is a step by step installation guide for Visual Studio 2013. This post is a part of Visual Studio 2013 series which contains all the post about new features of Visual Studio 2013. You can fine complete list at my Visual Studio page. Following is a link for that.

Visual Studio page
Download Visual Studio 2013 Preview: To install Visual Studio 2013 preview first thing you need to is to download a Visual Studio 2013 preview from MicroSoft Site. You can download Visual Studio 2013 preview from following link.

http://www.microsoft.com/visualstudio/eng/2013-downloads

In above link there are various options available for downloading the Visual Studio 2013 preview there are various options like Utimate Edition,Premium Edition, Professional Edition etc. You can download preview edition as per your requirement I have downloaded the Ultimate one as I need all the features provide by Visual Studio 2013 preview.

How to to select all p in div with jQuery

Recently I was discussing something with friend about jQuery and question comes from friend that how we can select the all p in Div with jQuery. With jQuery selector its very easy to select all p in div tag. But from this conversation I came to know that lots of people does not know about it. So I thought it will be great idea to write a blog post about it.

As you know with jQuery selectors we can have single selection but lots of people does not know that jQuery is also provide multiple selection also. Let’s take an example. You have following html structure.

Compile time view checking for ASP.NET MVC.

Image
While developing an ASP.NET MVC application, you need to create lots of views. At that time it does not compile the view. So if you have some typo in your view like namespace or any where you will get to know when you load that view in browser. At that time ASP.NET Complier will compile the complete view. 

We all are humans and we tends to make spelling mistakes and sometimes it a productivity loss when you create a very big view or complicated view. So I was searching on internet that whether there is a tool available to compile view also. After digging into it. I have found that there is a setting where we can tell whether its compile view or not. So once you enable that settings It will also compile views.

Programmatically Hiding ASP.NET Grid View Column.

Image
Recently I have been to http://forums.asp.net/ and found that lots of people are finding solution for hiding the Grid View column so I though it will be a good Idea to write a blog post. In this post I will explain how we can hide GridView Column programmatically. So let’s take same example that I have taken in previous post.

Hide ASP.NET GridView Column:
So let’s take  a simple example. I am going to bind a grid with list of Employee class and then on a button click I am going to hide the first column of grid. Following is a HTML code for that.
<div> <asp:Button runat="server" Text="Hide Column" ID="btnHideColumn" OnClick="btnHideColumn_Click"/> </div> <div> <asp:GridView runat="server" ID="employeeGrid" AutoGenerateColumns="False"> <Columns> <asp:BoundField HeaderText="Employee Id" DataField="EmployeeId"/> …

Dynamically setting GridView Column width in ASP.Net

Image
I was looking into the forums.asp.net and I have found lots of people was searching about how to set GridView Column Width dynamically. So I thought it will be a good idea to write a blog post about it.

Example(Setting Width Dynamically in ASP.Net):
So let’s take a an example for that. For that I have created a small model Employee class which will have three properties.
public class Employee { public int EmployeeId { get; set; } public string FirstName { get; set; } public string LastName { get; set; } }