Using Asp.net 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



![World No Tobacco Day 225px-Bluete_in_Aschenbecher[1]](http://logicum.co/wp-content/uploads/2013/05/225px-Bluete_in_Aschenbecher1.jpg)
Calling a WCF service in a Windows store app is a bit different from the normal WPF here is a sample on how to do it images + code
Earth Hour is a worldwide event organized by the World Wide Fund for Nature (WWF) and held towards the end of March annually, encouraging households and businesses to turn off their non-essential lights for one hour to raise awareness about the need to take action on climate change. The event, conceived by WWF and Leo Burnett, first took place in 2007, when 2.2 million residents of Sydney participated by turning off all non-essential lights. Following Sydney’s lead, many other cities around the world adopted the event in 2008. Earth Hour 2013 will be held on March 23, 2013 from 8:30 p.m. to 9:30 p.m. during participants’ local time.

Connection social media to any website is one of the important parts in building a website, and any website without those share buttons wouldn’t survive a lot. But sometimes the Default share/tweet buttons provided by the social medias are not good enough for our website or maybe doesn’t fit well in the design of the pages