RegisterStartupScript with asp:updatepanel

Using if you want to add a script to the page from the code behind. The normal Page.RegisterStartupScript will not work if it is called from a button (or any other event) inside an updatePanel.

This is the normal code you would use ( this will work normally if you don’t have an updatePanel)

Page.RegisterStartupScript(“popup”, “<script type=’text/javascript’>alert(‘hello world’);</script>”);

It should be replaced with the following line of code

ScriptManager.RegisterStartupScript(PanelID, PanelID.GetType(), “script key”, “alert(‘hello world’);”, true);

or use it like this same result

ScriptManager.RegisterStartupScript(PanelID, PanelID.GetType(), “script key”, “<script type=’text/javascript’>alert(‘hello world’);</script>”, false);

Hope this was helpful and solved your problem

Go Skateboarding Day (June 21)

1972“Skateboarding: Because gravity is a terrible thing to waste”, “splinters in your feet and asphalt in your teeth”, “Scars are like cheap tattoos”,” I will not stop until I am physically disabled”,” skateboarding is not a crime”; all are some of skateboarding lovers’ slogans who celebrate on June 21st of every year, the rapture of skateboarding.

Originated from the “No Skateboarding” signs which often have been changed to “Go Skateboarding”; GO SKATEBOARDING DAY is an attempt to promote the sport of skateboarding and make it more accessible to the world through various events held in major cities around the world.

The date June 21st was picked since it’s officially the first day of summer. It was first celebrated in 2004  by skateboarding companies to get people to skate and make money; however, GO SKATEBOARDING DAY has since become an occasion to celebrate Skateboarding as a lifestyle, sport and activity.

To all skateboarders: Skateboarding is not a STATE of body, it is a SKATE of mind….

Recess at Work Day (JUNE 20)

recessRemember back in school when you got to go outside with all your friends and enjoy the fresh air and just play? Well, today is the day you do that AT WORK. Yes, Recess At Work Day is a day to take a break during your work day and have some fun.

Recess At Work Day is celebrated on the third Thursday in June; According to Rich DiGirolamo, founder of Recess At Work Day, breaks lead to satisfaction; and satisfaction produces increased morale, reduced stress, more engaged and healthier employees; ultimately having a positive impact on productivity, absenteeism and profits.

Continue reading “Recess at Work Day (JUNE 20)”

The Charted Cheese Wheel

The Charted Cheese Wheel

A Chart of 66 delightful cheeses from around the world, assembled into one wondrous wheel. The cheeses are broken down by the animal that produced the luscious milk, and then by the texture of the resultant cheese, forming a cornucopia of cheese that range from the mild to the stinky and from the rock hard to the silky smooth. The chart includes all-time faves like Cheddar, Brie, and Mozzarella as well as foodie faves like Stinking Bishop and Humboldt Fog.
Click here to View Full Photo






Source: popchartlab


Let us Turn up the Beat

If you do not “carrot” all about vegetables, today is a perfect day to start considering vegetables into your diet; EAT YOUR VEGETABLES DAY was created to promote a healthier diet by encouraging people to introduce a vegetable portion in every meal of this day or even to replace snacks with vegetables. In other words, maintaining a vegetarian diet for the whole day is the best way to honor this event.

Studies show that, in addition to vegetables’ physical health benefits, mental well-being is also affected by vegetables intake. The more vegetables you eat, the happier you are; eating seven to eight portions of vegetables is more strongly associated with happiness and overall well-being than employment status. On the whole, maintaining your mental well-being requires seven daily servings of fruits and vegetables, but surveys also showed that people who ate just five servings a day were as happy—or very nearly so—as people who ate higher amounts.

As the saying goes, “you are what you eat”; take a minute to think about what you eat everyday, and make up your mind between what “keeps me healthy from my head “tomato”” or what “lasts a minute on my lips and a lifetime on my hips”.