Showing posts with label Daily .Net Tips. Show all posts
Showing posts with label Daily .Net Tips. Show all posts

Tuesday, April 15, 2014

Using DOM Explorer to Inspect your Office App in Visual Studio

If you are building an "App for Office" using Visual Studio, you may encounter difficulties to inspect the html while the app is hosted on the Office clients. This make things complex to debug the app, applying/ changing CSS or even changing/inspecting the HTML elements. While dealing with such web application related issue, we always looks for a code inspector […]


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,DOM Explorer,Daily .Net Tips

Sunday, January 26, 2014

Daily .Net Tips : 3 Powerful Customization Tips for ASP.NET Calendar Control

Few weeks back I listed a set of very useful tips on ASP.NET GridView control, now this is the time for Calendar Control. Calendar control provides members like SelectedDayStyle, WeekendDayStyle, TodayDayStyle to apply the styles for specific dates. Also there are several useful in built features for this control . However, in some scenarios, where you may […]


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials, ASP.Net,Daily .Net Tips

Monday, January 13, 2014

10 Effective Debugging Tips for .NET Developer

As a developer, in our day-to-day development activities we spend good amount of time to debug our code, identify the root cause of defect and finally solving them. While some of them are quite easy to identify and fix but there are issue which take countless time to identify. In fact, sometimes we spent more [...]


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,Daily .Net Tips

Saturday, January 11, 2014

Daily .Net Tips : Adding New Expression in Visual Studio DataTips

DataTips is an advanced tooltip message that can be used for inspecting the objects or variables while debugging the application with in Visual Studio. This feature was there for past several version of Visual Studio. DataTips can be pined, can float over the editor, you can write comments on each tip, or even you can [...]


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,Daily .Net Tips

Thursday, January 2, 2014

Daily .Net Tips : Automatically calling a method when a breakpoint is hit

While debugging the applications in visual studio, in may instances it may require to call a specific method when a breakpoint is hit. It may be because of just to verify some output or check some variables values. We can perform that part either using immediate window or execute those method in some other debugging session. However, all of them are a bit time consume! and while debugging we as a developer need to be very productive. So, here is one quick tip by which you can achieve the same in a smart way – just by using breakpoint itself. Yes ! you can invoke a method automatically when breakpoint is hit using some advanced breakpoint options.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,Daily .Net Tips

Saturday, October 19, 2013

Daily .Net Tips : Working with Zip Files in .NET

Zipping and Unzipping in a Client Application or a Website is very common requirement. Until the latest .NET version, there is no API that fully supports these things. We would have relied on J# specific JAVA APIs or there are superior 3rd party APIs available which could have done the trick.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips

Tuesday, September 24, 2013

A better switch with Lambdas in .NET, Part 4 (Working with Types)

When dealing with the new Switch case constructs, I always wanted to add more to it. After adding things to it like, replacing the previous switch /case with lambdas, then adding a StringComparer and then adding IComparer, I thought let us add something really useful to it. The switch with Types is always one might have wanted with traditional switches. Here is an implementation of Switch/Case constructs using lambdas to enumerate type of an object.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips

Monday, September 23, 2013

Daily .Net Tips : CorruptedStateExceptions in .NET, a way to handle

It is already a well known fact that while running the MSIL , the CLR (runtime) can generate an Exception object automatically because of some unknown problem it faced while executing the code. These exceptions could be an User mode Exceptions which could have been rose by some bad application code or can also be a Structured Exception such as Divide by Zero, Invalid Cast exception etc. Whatever the type of Exception be, you can write a Try/Catch block to handle the exception. For instance :


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips

Sunday, September 22, 2013

Daily .Net Tips : How to add Caller Info Attributes to an Environments that doesn’t support it

If you are building a class library with Retargetable turned on, you might end up your assemblies to be used by some environment that does not support some of the functionality that is well required by the assembly. Let us consider the case with Caller Info Attributes. Caller Info attributes are a good way of determining the name of the method, the line number and the file path of the source file for which the line is actually getting executed. It has been introduced with .NET 4.5 but was not a part of the other frameworks yet released. It is worth noting the fact, the previous version of the environment still have these info embedded within the runtime while running the code at least in debug mode, yet these functionalities were never been exposed.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,Daily .Net Tips

Wednesday, September 4, 2013

Daily .Net Tips : Asynchrony with Dispatcher in WPF

The new addition of async and await have already created buzz in the city with the superior language support of calling asynchronous code that looks pretty synchronous. There are two keywords that has been introduced to handle this behavior. The async is a specifier which directs the compiler to orchestrate automatically during the compilation to change its behavior and with the use of contextual keyword await inside an async method it makes the life of a regular programmer really easy to create more responsive code.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips,WPF

Tuesday, September 3, 2013

Daily .Net Tips : Refreshing browser from Application written in C#

Well, after looking at the feature in Visual Studio 2013 well introduced by my buddy Abhijit, I was thinking to do the similar thing from application as well. I thought if I could build a tool how could I mimic the same behavior to send refresh signal to an opened process from my application. It seem to me pretty straight- forward, we can make use of SendKeys interface to generate the similar behavior.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips

Saturday, August 31, 2013

Fav 3 : Three Favorite .NET Tips and Tricks from Daily .NET Tips – Series 2

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. This tip explained how can we pass multiple parameter with HyperLinkField in GridView.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips

Thursday, August 29, 2013

How to customize the Reflection Metadata ?

If you dealt with Type API in .NET 4.5, you must have already found that there is a separate object that exists that subsets the Type object into a more lightweight object representation that provides metadata specific to a particular Type called here as TypeInfo. It is quite easy to deal with TypeInfo rather that the Type object actually. Custom Reflection Context is another new addition to the Reflection API which allows to change or customize the TypeInfo based new Reflection API about your types. This can be extremely helpful when you are about to write libraries, and / or design components that can take help of the metadata components. It provides virtualization over the TypeInfo object.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips

Flag your own code in multithreading debugging

In previous tip, we have seen how to debug multithread application in Visual Studio. Debugging multithread application can be simple as well as complex depends on the application complexity. For a small application, where there are only few threads are running you can easily identify and trace them, but when program is complex it could be difficult to identify the treads. Moreover, the .Net Frameworks having it own threads running and there would be several threads from .NET Runtime and environments. In this situation it will be very difficult for you to identify which thread is part of your code or which are not related to your code.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips,Multithreading Debugging

Function return values inspection in Visual Studio 2013

Visual Studio 2013 introduced a great feature that helps you to inspect all the functions / nested functions returns values during the current debugging session. This is really useful when the returned values are not stored in a local variables and you want to check them. You can actually view then by giving the specific values in Watch Window. But you need to do them manually . With the help of new features of VS 2013 debugger, you can take help of Autos windows to view the functions return values together.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips

LargeObjectHeapCompaction in .NET Garbage Collection

Do you know that .NET GC now equipped with yet another option to Compact Large Object Heap. This has been a long problem for people where LOH can produce fragmentation in memory or when Free space table cannot handle allocation requests. LOH is the Large object Heap allocated generally for large objects which are above 85,000 bytes long. The number has been considered as a result of performance tuning. When object allocation requests are made above this threshold, the object is allocated in LOH.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips,LargeObjectHeapCompaction,.NET Garbage Collection,Garbage Collection

Wednesday, August 28, 2013

Type and TypeInfo, the two new faces of Object Metadata

.NET 4.5 comes with some of the major enhancements. Among them, one of the most important changes that has been made to every object is with the metadata of objects. In .NET 4.5 the System.Type object has been split into two separate classes:


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips

There is a ‘forr’ code snippet for reverse ‘for’ loop

Couple of days back we have discussed about one of the hidden and very useful code snippet, 'propfull – for property and backing field'. Today you will learn another interesting code snippet 'forr'. Yes, you read it correctly ! 'forr' . You must be familiar with 'for' code snippet that generates basic for-loop structure. Where as, 'forr' generates the reverse for-loop .


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips,Code Snippet

Wednesday, August 21, 2013

Daily .Net Tips : How to select a block of code in Visual Studio

This is quite interesting and a handy tip. You can use it very often during your development when you want to select a complete code block very quickly. Keep you cursor either at the starting or at the ending braces Just press Ctrl + Shift + ] . You will find the complete code block is being selected.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips

Daily .Net Tips : There is a propfull code snippet for property and backing field

Code snippets have been around for a long time and is one of the easiest ways for the developer productivity. We do use many of them frequently as they are very commonly in used, however there are a few which are really useful but many of us does not know about them.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Daily .Net Tips