jump to navigation

Weekly Archive – 7th August 2010 August 7, 2010

Posted by Abhijit Jana in General, Weekly Archive.
Tags: , , ,
1 comment so far

1. How to pass external values with GridView HyperLinkField which are not part of your Gridview DataSource member ?  

Published Date : August 3, 2010

2. How to hide Intellisense window in Visual Studio while coding or debugging to view the code?

Published Date: July 31, 2010

If you want to check all previous Weekly Archive, Please read http://abhijitjana.net/blogbox/ Section.

Thanks !

AJ

Shout it

How to pass external values with GridView HyperLinkField which are not part of your Gridview DataSource member ? August 3, 2010

Posted by Abhijit Jana in ASP.NET, Tips and Tricks, Visual Studio.
Tags: , , , , , , ,
5 comments

Few days back I have published an article “How to pass multiple values using GridView HyperLinkField ?”,  where I have explained how you can pass multiple parameter with Gridview HyperLinkField using DataNavigationUrlField and  DataNavigateUrlFormatString properties. In this post, I am going to explain how you can pass some external values as parameters with the same hyperlink field.

DataNavigationUrlField use only those  fields as parameter which are the part of GridView DataSource. Now the problem comes when you want to pass some other variables as parameter which are not part of the DataSource.  As shown in below image we are passing EmpID and ParentId as argument and this two field are the data member of GridView DataSource.

GridField

Now Say, You want pass ChildID for that particular record along with ParentID and EmpID and you want hyperlink url should be like “Default.aspx?EmpID=1&ParentID=P1&ChildID=C1”where ChildID is not part of datasource.

You can achieve  this by writing code in code behind for the particular GridView. There is two events where you can overwrite the navigation url of that hyperlink field. You can use  Gridview_RowDataBound or Gridview_PreRender for the same.

(more…)

How to hide Intellisense window in Visual Studio while coding or debugging to view the code? July 31, 2010

Posted by Abhijit Jana in General, Visual Studio.
Tags: , , , ,
4 comments

Here is one quick tips to hide Visual Studio Intellisense window to view the covered source code by the particular Intellisense popup. When we are working in Visual Studio and the IntelliSense window comes up, but we may want to view the code that is covered by the window.  Here you go,  Press the Ctrl key. Intellisense window becomes transparent and you can easily view your source code. Hold the Ctrl as long as you want them to be transparent.  You can do it while debugging your application or writing code.

Below is the few snaps for the the same.

1. View Code By Hiding Intellisense Window During coding

CodeMode

(more…)

Weekly Archive – 31st July 2010 July 31, 2010

Posted by Abhijit Jana in General, Weekly Archive.
Tags: , ,
1 comment so far

As per my earlier promise  I am  publishing the second weekly archive for my Blog.

1. Modify “Dirty Indicator” – Using Visual Studio 2010 Productivity Power Tool 

  Published Date : July 24, 2010

2. How to pass multiple values using GridView HyperLinkField ? 

Published Date: July 27, 2010

I have just started blogging at MSDN Blog. http://blogs.msdn.com/b/abhijit/ . (more…)

How to pass multiple values using GridView HyperLinkField ? July 27, 2010

Posted by Abhijit Jana in ASP.NET, ASP.NET 4.0, C#.
Tags: , , , , ,
6 comments

While working with GridView in ASP.NET, most of the time we used HyperlinkField column to navigate from one page to  different page with some value as argument.  In this blog post I have explained how can we pass multiple parameter with HyperLinkField in GridView.

To implement this features you need to know about  DataNavigationUrlField and  DataNavigateUrlFormatString properties of HyperLinkField. Let’s assume that you have a gridview as given below and you have already bind the datasource from code behind.

 <asp:gridview id="GrdEmp">
<columns runat="server" autogeneratecolumns="False" cellpadding="4">
<asp:boundfield datafield="ID" headertext="ID" />
<asp:boundfield datafield="Name" headertext="Name" />
<asp:boundfield datafield="ParentID" headertext="Base ID" />
</columns>
</asp:gridview>

Let’s first consider the case of passing single parameter. First thing that you need to do is, add a GridView “HyperLinkField “ column. After that you need to set the DataNavigationUrlField  and DataNavigateUrlFormatString properties for the same . In DataNavigationUrlField  you have to mention the name of the DataField which you want to bind as querystring. In DataNavigateUrlFormatString  you have to give the formatted URL String for the Navigation. The concept is same here as like FormatString the only difference is the data is coming from DataNavigationUrlField . (more…)

Modify “Dirty Indicator” – Using Visual Studio 2010 Productivity Power Tool July 24, 2010

Posted by Abhijit Jana in General, Visual Studio 2010, Visual Studio Productivity Tool.
Tags: , ,
2 comments

Dirty Indicator” is nothing but the indication of “Modified Unsaved” file in Visual Studio IDE. In Visual Studio 2010, by default dirty icon shows as “*”. Using productivity tool we can customize this icon.

To launch the VS 2010 productivity Tool, from Visual Studio IDE Go To Tools > Option > Productivity Power Tool

DirtyIndicator_Option 

You will find the Dirty Indicator under Document Tab Well > General Settings . Dirty Indicator having 4 different value, by default sets to “Default” which means it will indicate unsaved modified file as “*” .

DirtyIndicatorstart

(more…)

Weekly Archive – 24th July 2010 July 24, 2010

Posted by Abhijit Jana in General.
3 comments

Below is the list of articles and blog post’s that I have done over the last week.

1. Use “Shift+Enter” to add “;” automatically at end of the line – Visual Studio 2010 Productivity Power Tool

Published Date :  July 21, 2010

2. “View this as root” – A Solution Navigator features in VS 2010 Productivity Power Tools

Published Date :  July 20, 2010

3. Unable to Start Web Site on IIS – “Process can not access the file because It’s being used by another process”. How to resolve ?

Published Date :  July 20, 2010

4. Bing Maps Silverlight Control Integration with SharePoint 2010 – Integration of Silverlight 4 with SharePoint 2010

Published Date :  July 19, 2010

Note : I will continue publishing this weekly archive with the list of all articles and post for that weeks  on every Saturday . I will also post a monthly archive after end of every month. This will give a quick summary of posts and article to all the readers.

Shout it

Use “Shift+Enter” to add “;” automatically at end of the line – Visual Studio 2010 Productivity Power Tool July 21, 2010

Posted by Abhijit Jana in General.
Tags: , ,
5 comments

Visual Studio 2010 Productivity power tools introduced many new features for VS developer. Here I am going to talk about one small but useful features of the productivity tool.   You can use “Shift + Enter” to add semicolon (;) to end of the line. Instead  of putting “;” end of the line, you just press “Shift+Enter”. It will automatically add “;” at the end of the line and will move the cursor to next line.

ShiftEnter

As shown in the picture. If you press “Shift+Enter” over there, power tool will automatically add “;” and the end and the cursor will be moved to next line.

MoveCursor

For more features please read following links :

http://weblogs.asp.net/scottgu/archive/2010/07/19/vs-2010-productivity-power-tools-update-with-some-cool-new-features.aspx

http://blogs.msdn.com/b/visualstudio/archive/2010/07/18/new-version-of-the-productivity-power-tools-is-available.aspx

Shout it

“View this as root” – A Solution Navigator features in VS 2010 Productivity Power Tools July 20, 2010

Posted by Abhijit Jana in General, Visual Studio 2010.
Tags: , ,
7 comments

Visual Studio 2010 productivity power tool introduced many new and interesting features with in the Visual studio 2010 which are really great for developer and will help all of us improve the productivity. You can download the Productivity tool from http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef .

Solution Navigator is a new window that has been introduced with in this power tool which is an enhanced Solution Explorer. This window having many features like search code, highlight code, code navigation, File open, save, edit status etc. Along with these features one of the interesting features that I liked is “View this as root”. This features is very much helpful when you have the many projects with in a solution or your solution hierarchy is large. To start “Solution Navigator” , go to View > Solution Navigator or use (Ctrl + W, F) as shortcut key.This will open the “Solution Navigator” window.

SolutionNavigator

Look and feel wise it is same as “Solution Explorer” but  functionally it is quite different. You will find a “icon” at the right to side with all the files/folder under that solution as shown in below picture.

(more…)

Unable to Start Web Site on IIS – “Process can not access the file because It’s being used by another process”. How to resolve ? July 20, 2010

Posted by Abhijit Jana in ASP.NET 4.0, General, IIS.
Tags: ,
3 comments

I was trying to run one of my local IIS hosted site I got page not found error. I was quite surprised to see that error because the site was up and running few hours back. I opened the IIS and found that my Site Application was in stopped mode. I started the web application and got the error message displayed below

Problem : Error message “Process can not access the file because It’s being used by anther process”  while starting the web application from IIS.

Investigation and Resolution:  Earlier my web site was running on the default IIS port ( Port 80 ).  From the error message it’s clear that port 80 is being used by some other process or some one is blocking it. (more…)