What are Daemon threads and how can you create one?

Thursday, July 16, 2009


What?
It is a thread which runs in the background and stops when the programm is not running.

How to create one?
Thread.Isbackground=true




www.codecollege.NET

Daily Tips- Tip #10 - How to disable browser's back button using javascript?

Wednesday, July 15, 2009


Actually you cant disable the browser's back button, but if you are navigating between 2 pages , then you can give this functionality between them. You have to give the code in the following in the 1st page.
You can do that in 2 ways, they are:

1. <body onLoad="history.go(+1)">

2. function noBack(){window.history.forward()}
noBack();
window.onload=noBack;




www.codecollege.NET

What are PDB files? Where must they be located for debugging to work?


What are PDB files?
A program database (PDB) file holds debugging and project state information that allows incremental linking of a Debug configuration of your program.

Where must they be located for debugging to work?
You must deploy your PDB symbols to either the directory with the image or the directory where the symbols were originally built.



www.codecollege.NET

What is a nullable Type? How to assign a default value to it? Are nested nullable types allowed?


What are nullable types?
Nullable types are those which can represent a null in addition to the normal range of values. It is an instance of System.Nullable.

How to assign a default value to it?
Use the ?? operator to assign a default value when it is assigned to a non-nullable type.
Ex:
int? empid=null;
int tempid= empid ?? 1;

Are nested nullable types allowed?
No.




www.codecollege.NET

What is the Difference between imperative and interrogative code?



Interrogative:
Those statements which return values to the calling code are called Interrogative code.

Imperative:
Those statements which does not return values to the calling code are called imperative code.





www.codecollege.NET

What is the use of Checked and UnChecked operators?



They are used to control the overflow checking context for integral-type arithmetic operations and conversions.





www.codecollege.NET

What is a Resource File ? or What is a resx file ?


A resource file is an XML file which specify objects and strings inside XML tags.


For More Information see the following link,

http://msdn.microsoft.com/en-us/library/ekyft91f(VS.80).aspx




www.codecollege.NET
Blog Widget by LinkWithin