You are coding away, Visual Studio locks up for one of it’s many reasons, and reopen your project and run it again. You then get the “Unable to launch the visual studio development server because port 9452 is in use” error
When Visual Studio crashed, the Web Server did not, so basically it thinks you are trying to run two instances at the same time, which is not allowed.
Open up the process manager, go to the Processes tab, and select “WebDev.WebServer40.exe” and click “End Process”. Then try running your project again. Visual Studio will now start the project fresh and the problem should go away.
Or try this
Hope it helps !
Problem: I try to open project in Visual Studio and get all these nuget errors: The imported project "C:\Twitterizer\.nuget\nuget.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. Solution: Follow the following steps to resolve above error
- Install Nuget.
- Right click on the solution and select “Enable NuGet Package Restore”.
- Click Ok on the warning.
- Close and re-open the solution.
Hope this help!
Hope this help !
To open bootstrap modal popup on page load use following
You can use the Bootstrap
.modal('show') method for launching the modal window automatically when page load without clicking anything. A common example of this technique is loading the modal when user landed on the home page
Use the Bootstrap
Hope this help !
Page Life Cycle
|Seq||Events||Controls Initialized||View state
|What Logic can be written here?|
|1||Init||No||No||No||Note: You can access form data etc. by using ASP.NET request objects but not by Server controls.Creating controls dynamically, in case you have controls to be created on runtime. Any setting
|2||Load view state||Not guaranteed||Yes||Not guaranteed||You can access view state and any synch logic where you want viewstate to be pushed to behind code variables can be done here.|
|3||PostBackdata||Not guaranteed||Yes||Yes||You can access form data. Any logic where you want the form data to be pushed to behind code variables can be done here.|
|4||Load||Yes||Yes||Yes||This is the place where you will put any logic you want to operate on the controls. Like flourishing a combobox from the database, sorting data on a grid, etc. In this event, we get access to all controls, viewstate and their posted values.|
|5||Validate||Yes||Yes||Yes||If your page has validators or you want to execute validation for your page, this is the right place to the same.|
|6||Event||Yes||Yes||Yes||If this is a post back by a button click or a dropdown change, then the relative events will be fired. Any kind of logic which is related to that event can be executed here.|
|7||Pre-render||Yes||Yes||Yes||If you want to make final changes to the UI objects like changing tree structure or property values, before these controls are saved in to view state.|
|8||Save view state||Yes||Yes||Yes||Once all changes to server controls are done, this event can be an opportunity to save control data in to view state.|
|9||Render||Yes||Yes||Yes||If you want to add some custom HTML to the output this is the place you can.|
|10||Unload||Yes||Yes||Yes||Any kind of clean up you would like to do here.|