web-deployment

jQuery - Sticky header that shrinks when scrolling down

血红的双手。 提交于 2019-11-26 07:52:34
问题 I wonder how to make a sticky header shrink(with animation) when you scroll down the page and goes back to normal state when the page is scrolled up to the top. Here are two examples to clearify: http://themenectar.com/demo/salient/ http://www.kriesi.at/themes/enfold/ I get the part to make it fixed, but how should I do to shrink my header when the user scrolls down? Thanks a ton 回答1: This should be what you are looking for using jQuery. $(function(){ $('#header_nav').data('size','big'); });

MSBuild target package not found

泪湿孤枕 提交于 2019-11-26 07:29:54
问题 I want to package my VS2010 web application project ready for deployment with msdeploy. On development machine I can do this using: MSBuild.exe \"C:\\path\\to\\WebApp.csproj\" /target:package But on my build server I get this error: error MSB4057: The target \"package\" does not exist in the project. What am I missing on the build server? 回答1: I just got this working without installing VS2010 by following these steps on the build server: If .NET Framework 4 isn't installed, install it Install

allowDefinition='MachineToApplication' error when publishing from VS2010 (but only after a previous build)

北城以北 提交于 2019-11-26 05:57:17
问题 I can run my Asp.Net MVC 2 application without an issue on my local computer. Just Run / Debug. But if I have already built it, I can\'t publish it! I have to clean the solution and publish it again. I know this is not system critical, but it\'s really annoying. \"One Click Publish\" is not \"Clean solution and then One click publish\" The exact error is as follows: Error 11 It is an error to use a section registered as allowDefinition=\'MachineToApplication\' beyond application level. This

How to update parent's state in React?

99封情书 提交于 2019-11-26 01:29:20
问题 My structure looks as follows: Component 1 - |- Component 2 - - |- Component 4 - - - |- Component 5 Component 3 Component 3 should display some data depending on state of Component 5. Since props are immutable, I can\'t simply save it\'s state in Component 1 and forward it, right? And yes, I\'ve read about redux, but don\'t want to use it. I hope that it\'s possible to solve it just with react. Am I wrong? 回答1: For child-parent communication you should pass a function setting the state from

How do you include additional files using VS2010 web deployment packages?

て烟熏妆下的殇ゞ 提交于 2019-11-26 00:35:55
问题 I am testing out using the new web packaging functionality in visual studio 2010 and came across a situation where I use a pre-build event to copy required .dll\'s into my bin folder that my app relies on for API calls. They cannot be included as a reference since they are not COM dlls that can be used with interop. When I build my deployment package those files are excluded when I choose the option to only include the files required to run the app. Is there a way to configure the deployment