Use jQuery to hide a DIV when the user clicks outside of it

From: http://stackoverflow.com/questions/1403615/use-jquery-to-hide-a-div-when-the-user-clicks-outside-of-it


$(document).mouseup(function (e)
{
var container = $("YOUR CONTAINER SELECTOR");

if (!container.is(e.target) // if the target of the click isn't the container...
&& container.has(e.target).length === 0) // ... nor a descendant of the container
{
container.hide();
}
});

How to update a wsdl definition in Visual Studio Website project

Put new wsdl file in website root ~/Services

Goto “project” -> Service References folder ->
Select the particular web service -> right click and choose
“Update service reference”

Visual Studio builds new references against this definition and
updates some files inside the service folder *.svcinfo, Reference.cs, Reference.svcmap, app.config in the project base folder.

Rebuild solution.