Sunday, April 24, 2011

101 ways to make other people smile

101 ways to make other people smile

Read each one slowly and savor the thought..

I have already started putting some of these into practice and note that the results are absolutely phenomenal.

01. Call an old friend, just to say hi.
02. Hold a door open for a stranger.
03. Invite someone to lunch.
04. Compliment someone on his or her appearance.
05. Ask a coworker for their opinion on a project.
06. Bring cookies to work.
07. Let someone cut in during rush hour traffic.
08. Leave a waitress or waiter a big tip.
09. Tell a cashier to have a nice day.
10. Call your parents.
11. Let someone know you miss them.
12. Treat someone to a movie.
13. Let a person know you really appreciate them.
14. Visit a retirement center.
15. Take a child to the zoo.
16. Fill up your spouse's car with gas.
17. Surprise someone with a small gift.
18. Leave a thank-you note for the cleaning staff at work.
19. Write a letter to a distant relative.
20. Tell someone you thought about them the other day.
21. Put a dime in a stranger's parking meter before the time expires.
22. Bake a cake for a neighbor.
23. Send someone flowers to where they work.
24. Invite a friend to tea.
25. Recommend a good book to someone.
26. Donate clothing to a charity.
27. Offer an elderly person a ride to where they need to go.
28. Bag your own groceries at the checkout counter.
29. Give blood.
30. Offer free baby-sitting to a friend who's really busy or just needs a break.
31. Help your neighbor rake leaves or shovel snow.
32. Offer your seat to someone when there aren't any left.
33. Help someone with a heavy load.
34. Ask to see a store's manager and comment on the great service.
35. Give your place in line at the grocery store to someone who has only a few items.
36. Hug someone in your family for no reason.
37. Wave to a child in the car next to you.
38. Send a thank-you note to your doctor.
39. Repeat something nice you heard about someone else.
40. Leave a joke on someone's answering machine.
41. Be a mentor or coach to someone.
42. Forgive a loan.
43. Fill up the copier machine with paper after you're done using it.
44. Tell someone you believe in them.
45. Share your umbrella on a rainy day.
46. Welcome new neighbors with flowers or a plant.
47. Offer to watch a friend's home while they're away.
48. Ask someone if they need you to pick up anything while you're out shopping.
49. Ask a child to play a board game, and let them win.
50. Ask an elderly person to tell you about the good old days.
51. During bad weather, plan an indoor picnic with the family.
52. Buy someone a goldfish and bowl.
53. Compliment someone on their cooking and politely ask for a second helping.
54. Dance with someone who hasn't been asked.
55. Tell someone you mentioned them in your prayers.
56. Give children's clothes to another family when your kids outgrow them.
57. Deliver extra vegetables from your garden to the whole neighborhood.
58. Call your spouse just to say, I love you.
59. Call someone's attention to a rainbow or beautiful sunset.
60. Invite someone to go bowling.
61. Figure out someone's half-birthday by adding 182 days, and surprise them with a cake.
62. Ask someone about their children.
63. Tell someone which quality you like most about them.
64. Brush the snow off of the car next to yours.
65. Return your shopping cart to the front of the store.
66. Encourage someone's dream, no matter how big or small it is.
67. Pay for a stranger's cup of coffee without them knowing it.
68. Leave a love letter where your partner will find it.
69. Ask an older person for their advice.
70. Offer to take care of someone's pet while they're away.
71. Tell a child you're proud of them.
72. Visit a sick person, or send them a care package.
73. Join a Big Brother or Sister program.
74. Leave a piece of candy on a coworker's desk.
75. Bring your child to work with you for the afternoon.
76. Give someone a recording of their favorite music.
77. Email a friend some information about a topic they are especially interested in.
78. Give someone a homemade gift.
79. Write a poem for someone.
80. Bake some cookies for your local fire or police department
81. Organize a neighborhood cleanup and have a barbecue afterwards.
82. Help a child build a birdhouse or similar project.
83. Check in on an old person, just to see if they're okay.
84. Ask for the recipe after you eat over at someone's house.
85. Personally welcome a new employee at work and offer to take them out for lunch.
86. While in a car, ask everyone to buckle up because they are important to you.
87. Let someone else eat the last slice of cake or pizza.
88. Stop and buy a drink from a kid's lemonade stand.
89. Forgive someone when they apologize.
90. Wave to someone looking for a parking space when you're about to leave a shopping center.
91. Send a copy of an old photograph to a childhood friend.
92. Leave a pint of your spouse's favorite flavor of ice cream in the freezer with a bow on it.
93. Do a household chore that is usually done by someone else in the family.
94. Be especially happy for someone when they tell you their good news.
95. Compliment a coworker on their role in a successful project.
96. Give your spouse a spontaneous back rub at the end of the day.
97. Serve someone in your family breakfast in bed.
98. Ask someone if they've lost weight.
99. Make a donation to a charity in someone's honor.
100. Take a child to a ballgame.
101. Tell someone that you are always there to hold him/her.

Thursday, April 21, 2011

Create and Use Controls Dynamically in VB.NET

How to create and use Controls Dynamically in VB.NET:

Example code below is showing how you can create Controls dynamically and on save button click extracting values of fields and save back in database:

control.aspx page for Dynamica Control Form:



VB.NET Code is given below for dynamic form:





The above example Code Snaps are showing an easy way to create dynamic control and call dynamically created controls one by one during save (button click) to get values inserted by user.
The above code is using some static methods to distinguish for a field “date” in code like
If (j = 3) Then
sql &= "TO_DATE('" & txt.Text & "','DD/MM/YYYY')"
Else

End If

Reader can implement their own methods to distinguish different data field type Like Date, Time, email etc.

Wednesday, April 20, 2011

Convert ASP Controls into HTML Equivalent

Best and Easy Way to Convert ASP Controls into HTML Equivalent: (VB.NET)

Introduction:
Sometimes we need to draw some tabular structure at server side depending on various values retrieved from database i.e. everything should build dynamically. Something like report on various criterion. It’s very hectic and long process when we write all the desired code, structure of report in HTML. In this tutorial I’ll give you a brief but very useful way to design such reports using solo ASP tables or ASP TABLE inside HTML table, where everything will be done at server side.
Example Description:
We will start this tutorial with a simple example; let us assume that we have to generate a report which should printable and some of its portion (say header data, some information) on each page of report.
Here is aspx page which we are going to use to generate example report.
ReportToPrint.aspx


As you can see in above aspx page that I have taken in this example have One Image Button control with ID “btprint”, a ASP table with ID “header” is used to display some information mostly Static. Now 3rd control of the page which is basically is going to contain heart of design in this tutorial.
I have also used a javascript function “fprintf()” to hide unwanted information during print function call, you can use your own as per need.

Now it’s time to let you review VB code (page) to generate dynamic report using HTML tags, ASP Controls which will be converted later on to HTML equivalent:
First look at code below once:
ReportToPrint.aspx.vb












What the Above Code Exactly Doing?
I hope you all read above code carefully, and probably understood what it’s doing. Still let’s have a quick recap:
1. On Page Load I Called Two Functions i.e. TopHeaderRows(), Data_To_Print() TopHeaderRows() function creates a specific header rows which will be constant (probably) for all reports under category.
Data_To_Print() this function is user to generate report based on conditional values passed for report, For example “Allotment Letter for All New Employees In Last Month” this report may need date, department etc. I called this in page_load section, you call it anywhere as per need.
2. TopHeaderRows() function creates a asp table with various styles on it at server side, which will be used in report at various paces with HTML representation.
3. createHeader(),fillData(),ControlToHtml() functions used inside Data_To_Print to generate desired Output Report and it’s formatting as per need.
4. ControlToHtml() is specific function which can be use for conversion of any asp tag to it’s equivalent HTML, just by passing it’s id.
Someone may ask at this point why I should use ASP controls when at the end all things will delivered in HTML format as above function in converting them into HTML when I can code in HTML well.
First answer for this question is “It saves lots of time spent in designing and controlling alignment using HTML”.
Second one can Use various rich controls from ASP in their report which not available in HTML.
So Get Free from Overhead of Design Reports using only HTML tags, Use ASP Controls freely as here we have a function to convert it in HTML equivalent. You can mix both HTML TAGS and ASP CONTROLS as per your need.

Wednesday, August 25, 2010

Awards & Honors in Last Five Years

Year 2009:
Team member of winning cricket team of MCA in cricket tournament at Mathura Das Mathur ground, Lachoo Memorial College of Science & Technology, Jodhpur.
Year 2006-07:
a) Elected as literature president in B.N. P.G. College, Udaipur for year 2006-2007.
b) Directed and act in play "Gabbar Ki Shaadi" at college Stage.
c) 2nd position secured in relay 4 X 100 meters race at college level in both 2006 and 2007.
d) 1st position secured in creative writing competition 2006 and 2007 at college level.
e) Acted in Mime Shows "AIDS Awareness" and "Deshprem".