IIS Admin Obj:how to set multiple binding strings in ServerBindings?

IIS Admin Obj:how to set multiple binding strings in ServerBindings?

Post by Alphon » Sat, 04 Nov 2000 18:56:03



i want to add multiple identities for a web site,
i tried:

 NewWebSite.ServerBindings(0) = Request.ServerVariables("LOCAL_ADDR") &
":80:www.abc.com"
 NewWebSite.ServerBindings(1) = Request.ServerVariables("LOCAL_ADDR") &
":80:abc.com"

the code runs without giving error msg
but the result is ServerBindings(1) replaced ServerBindings(0)!

the usage of "ServerBindings" property is always
confusing me !
how can i get what i want? any help'll be appreciated.

 
 
 

IIS Admin Obj:how to set multiple binding strings in ServerBindings?

Post by Alphon » Sat, 04 Nov 2000 19:01:51


Maybe the proper question for this is:
how to deal with the "list" type in VB?

 
 
 

IIS Admin Obj:how to set multiple binding strings in ServerBindings?

Post by Bruno THIEM » Thu, 25 Jan 2001 22:18:22


Quote:-----Original Message-----

Maybe the proper question for this is:
how to deal with the "list" type in VB?

In fact, you have to use a two dimensional array of variant.

Ex:
aryBindings(0) = ":80:name1"
aryBindings(1) = ":80:name2"

object.serverbindings = aryBindings

.