J
Jaydeep
Hi,
Anybody knows how to create virtual directory programmatically under root
directory ofcourse from code-behind.
I am developing web-based application where I need to create a folder and
making this folder as virtual directory in IIS.
I know in ASP how to do it.
Set objIIS = GetObject("IIS://localhost/W3SVC/1/Root")
objIIS.Create("IISWebVirtualDir", strVirtualDirectoryName)
but how to do this in ASP.NET using C# ?
What is the namespace I should include so that I will get object of Root
directory of IIS and then I can create virtual directory ?
TIA
Jaydeep
Anybody knows how to create virtual directory programmatically under root
directory ofcourse from code-behind.
I am developing web-based application where I need to create a folder and
making this folder as virtual directory in IIS.
I know in ASP how to do it.
Set objIIS = GetObject("IIS://localhost/W3SVC/1/Root")
objIIS.Create("IISWebVirtualDir", strVirtualDirectoryName)
but how to do this in ASP.NET using C# ?
What is the namespace I should include so that I will get object of Root
directory of IIS and then I can create virtual directory ?
TIA
Jaydeep