Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: reading XML Pin
Planker14-Nov-08 6:43
Planker14-Nov-08 6:43 
AnswerRe: reading XML Pin
Planker14-Nov-08 10:12
Planker14-Nov-08 10:12 
Questionhelp with data reader Pin
Melanie Booysen13-Nov-08 7:47
Melanie Booysen13-Nov-08 7:47 
AnswerRe: help with data reader Pin
Ennis Ray Lynch, Jr.13-Nov-08 8:07
Ennis Ray Lynch, Jr.13-Nov-08 8:07 
AnswerRe: help with data reader Pin
Giorgi Dalakishvili13-Nov-08 8:17
mentorGiorgi Dalakishvili13-Nov-08 8:17 
AnswerRe: help with data reader Pin
PIEBALDconsult13-Nov-08 12:59
mvePIEBALDconsult13-Nov-08 12:59 
QuestionGet Website information from IIS Pin
Pr@teek B@h!13-Nov-08 7:44
Pr@teek B@h!13-Nov-08 7:44 
AnswerRe: Get Website information from IIS Pin
Pr@teek B@h!13-Nov-08 9:45
Pr@teek B@h!13-Nov-08 9:45 
Never Mind.
I was able to find out how to do it.

DirectoryEntry iis = new DirectoryEntry("IIS://" + Environment.MachineName + "/w3svc");

foreach (DirectoryEntry site in iis.Children)
{
	if (site.SchemaClassName == "IIsWebServer") //Web Sites have the IIsWebServer schema{
	{
		String siteName = site.Name;
		foreach (String propertyName in site.Properties.PropertyNames)
		{
			PropertyValueCollection values = site.Properties[propertyName];
			foreach (object val in values)
			{
				Console.WriteLine(propertyName + ": " + val);
			}
		}
	}
}

This will get the list of web sites on IIS and their properties. I don't know if this will work for IIS 7 right now.
QuestionSearching the inbetweens? Pin
jas0n2313-Nov-08 6:52
jas0n2313-Nov-08 6:52 
AnswerRe: Searching the inbetweens? Pin
Ennis Ray Lynch, Jr.13-Nov-08 7:29
Ennis Ray Lynch, Jr.13-Nov-08 7:29 
AnswerRe: Searching the inbetweens? Pin
sph3rex13-Nov-08 7:49
sph3rex13-Nov-08 7:49 
GeneralRe: Searching the inbetweens? Pin
jas0n2313-Nov-08 18:27
jas0n2313-Nov-08 18:27 
GeneralRe: Searching the inbetweens? Pin
sph3rex13-Nov-08 22:51
sph3rex13-Nov-08 22:51 
Questionreading bits from a file and manipulate them Pin
arturw8213-Nov-08 6:51
arturw8213-Nov-08 6:51 
AnswerRe: reading bits from a file and manipulate them Pin
Mbah Dhaim13-Nov-08 7:16
Mbah Dhaim13-Nov-08 7:16 
GeneralRe: reading bits from a file and manipulate them Pin
arturw8213-Nov-08 10:18
arturw8213-Nov-08 10:18 
AnswerRe: reading bits from a file and manipulate them Pin
Pr@teek B@h!13-Nov-08 8:07
Pr@teek B@h!13-Nov-08 8:07 
GeneralRe: reading bits from a file and manipulate them Pin
arturw8213-Nov-08 10:52
arturw8213-Nov-08 10:52 
GeneralRe: reading bits from a file and manipulate them Pin
Pr@teek B@h!14-Nov-08 2:56
Pr@teek B@h!14-Nov-08 2:56 
QuestionApplication architecture Pin
DaveKub13-Nov-08 5:17
DaveKub13-Nov-08 5:17 
QuestionGet all names of objects (controls) in a form Pin
Kurt13-Nov-08 5:01
Kurt13-Nov-08 5:01 
AnswerRe: Get all names of objects (controls) in a form Pin
Giorgi Dalakishvili13-Nov-08 5:20
mentorGiorgi Dalakishvili13-Nov-08 5:20 
AnswerRe: Get all names of objects (controls) in a form Pin
Ben Fair13-Nov-08 6:22
Ben Fair13-Nov-08 6:22 
GeneralRe: Get all names of objects (controls) in a form Pin
Kurt13-Nov-08 21:03
Kurt13-Nov-08 21:03 
Questionconverting GSM 6.10 to PCM in c# Pin
f4hd13-Nov-08 4:34
f4hd13-Nov-08 4:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.