jump to navigation

JScript Debugger– “Unable to attach the process. Another debugger might be attached to the process” – while application is running from Visual Studio. [ Solution ] January 20, 2012

Posted by Abhijit Jana in .NET 4.0, ASP.NET 4.0, ASP.NET 4.5, Tips and Tricks, Visual Studio, Visual Studio 2010, Visual Studio 2011.
Tags: , , ,
3 comments

IE Developer toolbar provide us a fantastic and easiest way to debug JavaScript with in browser.  If the web site is hosted on IIS and you are trying  debug JavaScript using IE Developer tool bar, it will work fine if you the correct browser setting for debugging. If you are running your web application directly from visual studio, you might came across the problem of “Unable to attach to the process”  while click on “Start debugging” button in IE Developer toolbar. In this post I am going to talk about the resolution of the same and will also talk about little bit behind the scene.

(more…)

16 Tips on .NET, ASP.NET 4.5, Visual Studio 2011 Developer Preview, Profiler – October 2011 Links November 1, 2011

Posted by Abhijit Jana in ASP.NET 4.5, Tips and Tricks, Visual Studio 2011.
Tags: ,
add a comment

Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.   This month we have wide range of tips including ASP.NET 4.5, C#, .NET , Visual Studio 2011 Developer Preview, Profiler etc. In this post I am quickly listing down all the tips which are published over the month October 2011

(more…)

25 Tips on ASP.NET, C#, MEF, Visual Studio, Profiler – September 2011 Links September 30, 2011

Posted by Abhijit Jana in Visual Studio 2010, .NET 4.0, ASP.NET 4.0, Visual Studio, Tips and Tricks.
Tags: ,
add a comment

Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.   This month we have wide range of tips including ASP.NET, C#, MEF, Visual Studio, Profiler etc. In this post I am quickly listing down all the tips which are published over the month September 2011

(more…)

31 Tips on ASP.NET, C#, WPF , MEF, MVC, Visual Studio – August 2011 Links August 31, 2011

Posted by Abhijit Jana in C#, .NET 4.0, ASP.NET 4.0, Tips and Tricks.
Tags: ,
1 comment so far

Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.   This month we have wide range of tips including Threading, MEF, WPF and MVC. In this post I am quickly listing down all the tips which are published over the month August 2011

(more…)

.NET Tips – Links on ASP.NET C# MVC Visual Studio Tips – May 2011 June 1, 2011

Posted by Abhijit Jana in .NET 4.0, ASP.NET 4.0, MVC Framework, Tips and Tricks, Visual Studio.
Tags: , , , , ,
1 comment so far

Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.  In this post I am quickly listing down all the tips which are posted over the month May 2011.

(more…)

Few important tips that you should know while using ASP.NET Session May 3, 2011

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

While working with ASP.NET web application you must be familiar with one of most important state management technique “Session”. If you want to do a quick refresh or want to know some thing more, please go ahead and read one of my article “Exploring Session in ASP.NET” published at Code Project. In this post I am going to share some important tips that might be useful.

(more…)

24 .NET Tips Links on ASP.NET C# MVC Silverlight Windows Phone – April 2011 April 30, 2011

Posted by Abhijit Jana in .NET 4.0, Tips and Tricks.
Tags: , , , , , , , , ,
1 comment so far

Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.  In this post I am quickly listing down all the tips which are posted over the month April 2011.

(more…)

TOD : Wrapping Code Block and Statements in Visual Studio April 23, 2011

Posted by Abhijit Jana in .NET 4.0, Tips and Tricks, Visual Studio.
Tags: , , , , , , , , , , ,
add a comment

In this tips I have explained how you can automatically wrap up code blocks or code statement in Visual Studio. We can use Document formatting to format the whole contents, but that doesn’t wrap single line code block like Properties or not even single line multiple declaration statement.  Let’s consider an example, you are creating a Properties using code snippet and by default it will came up like

image

But, you want you code to be look like as below

image

How ? Read Complete Tips

100 Useful .NET Tips & Tricks April 15, 2011

Posted by Abhijit Jana in .NET 4.0, ASP.NET 4.0, Debugging, Tips and Tricks.
Tags: , , , , ,
1 comment so far

Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.  I started with this new site few months back and with in short time period we have total 100 Tips which mainly focused on the practical oriented problem. You can find tips related with C#, ASP.NET, Silverlight, WPF, WCF, JQuery, WP7 etc.

To know more ……

Light bulbVisit  http://dailydotnettips.com

Light bulbSubscribe Tips to your mail box : http://bit.ly/hFAhop

Light bulbFor Quick Update Follow : @dailydotnettips 

Thanks to all the contributors Abhishek Sur, Prayan Rana, Jebarson Jebamony, Atul Verma,Shravan Kumar  who spends their time and shared tips.

Looking forward more contribution from all of you.

Freezing If you want to contribute your tips at  http://dailydotnettips.com , please contact with me via Contact Page.

Thanks !

AJ

Generic Way to Bind Enum With Different ASP.NET List Controls April 4, 2011

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

In this post I am going to explain how we can bind a Enum with ASP.NET List Controls. These comprise of four different types of control, CheckBoxList, DropDownList, ListBox and RadioButtonList. This is one of the common requirements during development to bind a Enum with List Control and challenge is when we need to bind the both text and value.
Let’s consider we have the blow Enum. Now I am going to bind it with all the above mentioned type List Controls.
image

Well, One of the easiest way that we can implement is by Enum.GetNames(Type enumType)which retrieves the name list of enumberation  and Enum.GetValues(Type enumType), which returns the list of values for each names .
(more…)

10 ASP.NET Tips and Tricks April 3, 2011

Posted by Abhijit Jana in ASP.NET 4.0, Tips and Tricks, Visual Studio 2010.
Tags: , ,
1 comment so far

Here I am sharing 10 ASP.NET Tips and Tricks most of them related with Grid View Control

How to change GridView column alignments for dynamic data source ?

How to pass multiple values using GridView HyperLinkField ?

Displaying Custom Messages / Images with NULL Value in ASP.NET GridView

Display custom messages or images when there is no records in GridView Data Source

How to Display “Yes” or “No” Instead of Checkbox while binding Boolean value with GridView ?

How to expand specific Tree View Node programmatically in ASP.NET ?

Run ASP.NET Web Application from Command Prompt

 How EnableViewStateMAC Makes ViewState Secure ?

 Disabling button when performing some operation in ASP.NET

 How to remove a persistent cookies before Expiration time ?

To know more Tips and Tricks Follow @dailydotnettips and visit http://dailydotnettips.com

On a side note,  I would like to congratulate couple of my friends, first a key community contributor on WCF, Dhananjay Kumar  for renewing  Microsoft MVP – Connected System again for year 2011. He blogs at  http://debugmode.net/ and his twitter id @debugmode_ .  and second one  Krishna Chaitanya T for Microsoft MVP – Internet Explorer . He is a Web Geek, do lots of research on web technology. He blogs at http://www.novogeek.com/ and his Twitter ID @novogeek . Good job guys !!

14 Useful .NET Debugging Tips & Tricks in Visual Studio March 12, 2011

Posted by Abhijit Jana in .NET 4.0, Debugging, Tips and Tricks.
Tags: , , ,
add a comment

 

List of few useful debugging tips and tricks

1. How to use Runtime Objects in Watch Window during debugging in Visual Studio ?

2. How to use out of scope object with in Conditional Breakpoint ? 

3. Use Conditional Breakpoints with Method Calling in Visual Studio

4. Calling Methods From Watch Window

5. Changing Variables Display Format in Watch Window

6. Get Object Generation using Watch Window

7. Save IntelliTrace Log from IntelliTrace Window

8. Last Session Debugging Value using Data Tips

9. Few Tips on Customizing Debugging Window View in Visual Studio

10. Using DebuggerStepThrough attributes to stepped over code during debugging

11. Hide Methods from debugger Using DebuggerHidden attribute

12. Use “Obsolete” attributes to indicate Obsolete Methods

13. How to suppress compiler warning using #pragma warning directives in Visual Studio ?

14. Customize the Debugging Windows : Change Debugging Window View as per your requirements

To know more Tips and Tricks visit http://dailydotnettips.com and Follow @DailyDotNetTips

Thanks !

AJ

ASP.NET Custom Repeater Control with EmptyTemplate, ShowHeaderWhenEmpty,ShowFooterWhenEmpty,ShowCount Properties March 9, 2011

Posted by Abhijit Jana in .NET 4.0, ASP.NET, ASP.NET 4.0, Tips and Tricks.
Tags: , , , , , , , ,
4 comments

If you have worked with ASP.NET GridView Control you must be aware of GridView.EmptyDataTemplate Property  which Gets or sets the user-defined content for the empty data row when a GriimagedView control  data source has no records. Similarly ShowHeaderWhenEmpty property allows you to show or hide the Header row when there is no records. These are the really good and very frequent required properties. Now, if you are working with the Repeater Control, it doesn’t have any direct features which enables you to set user define content when data source is empty. In this blog post I will discuss how we can create a custom ASP.NET Repeater control with support of EmptyTemplate along with few more important features.

(more…)

Run ASP.NET Web Application from Command Prompt February 28, 2011

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

Visual Studio has its own integrated ASP.NET Runtime engine, which helps to run any ASP.NET web application with in Visual Studio.  While running application from Visual Studio, you must have seen a popup notification in System Tray (As shown in below image) , which is notification of ASP.NET Development Server.

image

This ASP.NET Development Server is nothing but a executable file (WebDev.WebServer) which used by Visual Studio to execute you web application when it’s running in the context of Visual Studio.  You can find the executable file at <\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0> . This folder contain two different executable

  • WebDev.WebServer20.EXE
  • WebDev.WebServer40.EXE

WebDev.WebServer20 is targeted to CLR 2.0, which means all the ASP.NET Application which are targeted till FW .NET 3.5 will be taking care by WebDev.WebServer20.EXE and WebDev.WebServer40.EXE for ASP.NET 4.0 based application.

Now, let’s see how we can use these executable to run an ASP.NET 4.0 Application with out using Visual Studio. Surprised smile

(more…)

Follow

Get every new post delivered to your Inbox.

Join 1,667 other followers