Dear Anand
I've built a (linear power supply 20V DC) the output driven by MOSFET 50N06 but i got heat problem, i dont know why there is overheating on the MOSFET even with low loads, e.g. 0.42 mA.

There are numerous things wrong with that circuit but please start your own thread, rather than derailing someone else's.
Sorry for my being more specific. I am talking power switching applications. I have not learned the other stuff.
It seems in a lot of tutorials. They are always using transistors to turn on relays never MOSFETS. I guess it's price at they do seem more expensive
is there any down side? I see the higher voltage but that's a non issue with my controllers. Can they be used with pwm? Just looking for a down side?
Can they switch ac loads? Why not use them in place of relays?
How do I determine the bleed off resistor or is 10k standard across the gate to ground
At low power levels, BJTs are often cheaper.
BJTs are better at higher voltage and will work with PWM too.
MOSFETs can be used to switch AC loads, if two are connected back-to-back but the control voltage needs to be applied between the source and gates, which can be done capacitively or via an isolation transformer. The value of the gate-source pull-down resistor is unimportant.
Examples of an AC solid state relay. The capacitors need to be Y1-rated and the transformer needs to be approved for connecting between the mains and extra low voltage DC.
