100 .NET Interview Questions and Answers

Q1. Explain the differences between Server-side and Client-side code?
Ans. Server side code will execute at server (where the website is hosted) end, & all the business logic will execute at server end where as client side code will execute at client side (usually written in javascript, vbscript, jscript) at browser end.

Q2. What type of code (server or client) is found in a Code-Behind class?
Ans. Server side code.

Q3. How to make sure that value is entered in an asp:Textbox control?
Ans. Use a RequiredFieldValidator control.

A Small Story about Girl a Boy

A Small Story

A boy and a girl were playing together. The boy had a collection of marbles. The girl had some sweets with her. The boy told the girl that he will give her all his marbles in exchange for her sweets. The girl agreed. The boy kept the biggest and the most beautiful marble aside and gave the rest to the girl. The girl gave him all her sweets as she had promised.

That night, the girl slept peacefully. But the boy couldn't sleep as he kept wondering if the girl had hidden some sweets from him the way he had hidden his best marble.

Moral of the story:

If you don't give hundred percent in a relationship, you'll always keep doubting if the other person has given his / her hundred percent... This is applicable for any relationship like love, friendship, employer- employee relationship etc.  

Give your hundred percent to everything you do and sleep peacefully.

An absolutely Brilliant Joke

An absolutely Brilliant Joke, ENJOY!!!

A Woman was out golfing one day when she hit the ball into the woods.
She went into the woods to look for it and found a frog in a trap.
The frog said to her, "If you release me from this trap, I will grant you three wishes."
The woman freed the frog, and the frog said, "Thank you, but I failed to mention that there was a condition to your wishes.

 Whatever you wish for, your husband will get times ten!"
The woman said, "That's okay." For her first wish, she wanted to be the most beautiful woman in the world.
The frog warned her, "You do realize that this wish will also make your husband the most handsome man in the world, an Adonis whom women will flock to". The woman replied,

"That's okay, because I will be the most beautiful Woman and he will have eyes only for me."
So, KAZAM-she's the most beautiful Woman in the world! For her second wish, she wanted to be the richest woman in the world.
The frog said, "That will make your husband the richest man in the world.
And he will be ten times richer than you. " The woman said, "That's okay, because what's mine is his and what's his is mine."
So, KAZAM-she's the richest woman in the world!

................ The frog then inquired about her third wish, and she answered, "I'd like a mild heart attack."

Moral of the story: Women are clever. Don't mess with them.

Attention female readers: This is the end of the joke for you. Stop here and continue feeling good.

Male readers: Please scroll down.











The man had a heart attack ten times milder than his wife!!!

Moral of the story: Women are really dumb but think they're really smart.

Let them continue to think that way and just enjoy the show

PS: If you are a woman and are still reading this; it only goes to show that women never listen!!!