Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Saturday, September 24, 2011

C# interview questions :- How do you debug C# applications using Visual studio ?.

I use the following things for debugging c# applications using visual studio :-

1. Step over if we want to move one step after other.

2. Step in , if we want to move in to a function.

3. Step out , if we want to move out of the function.

4. Add watch and Quick watch to see the variable data.

5. Intellitrace to back trace debugging history.

Put the below link of the video




Get more materials on c# interview questions and answers

Regards,

Also see author’s other blog on Most asked c# interview questions

Saturday, April 16, 2011

.NET and ASP.NET interview question -How will you distinguish between Cache and Application?

Answer:

Application and Cache both help to share global data and cache data across the users.but cache object is proactive and you can define dependency.In application object you can't define depenency.
Below is the code for declaring application and cache object.

CacheDependency objCacheDependency =
new CacheDependency(Server.MapPath("Banner.txt"));

Cache.Insert("Banner", strBanner, objCacheDependency
); Application["Banner"] = "strBanner";

In the above code, for Cache object you can define dependency but in Application object you can't define dependency.when the banner file is changed the Cache object can be refreshed but the application remain static and holds the old text of banner file.

Please click here to see more .NET/ASP.NET interview questions
Regards,
Visit Authors blog for more ASP.NET interview questions