How do I remove a site from IIS7 using JavaScript?
-
I've been searching the Internet for a way to remove a site from IIS7 using JavaScript. I've found, and used, a lot of examples on how to create a site and applications using JavaScript but not a single example on how to delete a site! For example, I've figured out how to create a site using the examples found at http://www.iis.net/ConfigReference/system.applicationHost/sites. Does anyone know how to remove a site from IIS7 using JavaScript? Please help! /Petteri
-
Answer:
JavaScript is not meant to perform server side infrastructure operations - but if you insist on doing it you should wrap your operation (deleting the site using C#) in a web service exposed to JavaScript via static Page methods (assuming you are using asp.net) and throw in a ScriptManager to access your web service. That way you can access the functionality to remove the site via JavaScript.
Petteri Vilmusenaho at Server Fault Visit the source
Related Q & A:
- How can I remove a casset tape from my car player? It is a 2003 Hyundai Sonota. Does anyone else this problem?Best solution by Yahoo! Answers
- How can I remove a contact from a list in my address book?Best solution by windows.microsoft.com
- How do I remove a firewall to view a webcam?Best solution by Yahoo! Answers
- How can I remove a bumper cover from a Chevy Malibu?Best solution by Yahoo! Answers
- How can I remove a picture's watermark using Matlab's image processing toolbox?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.