Archive for May 19th, 2006

19 May 2006

TOO GOOD: Team coordination Funda

No Comments Fun & Humorous

A bunch of smart MBA students about to give their final paper just got nicely drunk and did not study. Next day morning remorse filled them and they thought of a brilliant idea of fooling their dean to cover their absence. They painted their hands and dresses with oil and grease and with disheveled hair; they burst in the examination hall where the paper was going on.

They painted a sob story of how their car developed a flat tyre the previous night on a desolate road and how they didn’t get any help and had to rough out back to the campus which they reached just a few minutes earlier.

They pleaded for a re-exam after a few days. The dean said he was a reasonable man and he would give the re-exam after three days. The boys worked hard for the three days and went to the hall confidently.
The dean explained that since this was an extraordinary request, the four students will give the examination from four different halls, the question paper being the same.

The question paper was given to the four halls. It had 100 marks. The first question which had just 5 marks was simple. The second question which had 95 marks was:-
“WHICH TYRE??”

Moral: Team coordination is essential!!

19 May 2006

A refresh button for asp.net pages

1 Comment ASP.NET

I was reading a post A refresh button for asp.net pages by Peter Van Ooijen. I am not sure if I am agree with implementation suggested by Peter to refresh page because it unnecessarily requires two (instead it can be easily done with single trip) server trips just to refresh the same page.

IMO, we can achieve page refresh action by just adding onclick attribute to button.

HyperLink1.Attributes.Add("onclick", "document.Form1.submit();");

Or, if you want a fresh instance of that page after refesh than add this script to onclick event instead.

HyperLink1.Attributes.Add("onclick", "document.location='" + Request.Url.ToString() + "'");