A
ats@jbex
Hi there. I have a folder named reports on my web server. Inside the folder
is a page named reports.aspx and 2 folders named client1 and client2. I
have some spreadsheets in each of the folders that are relative to each
individual client. I would like to know how I can use server.mappath to
choose the correct folder depending on which client is logged. For example
I would have the following code on my page behind:
<CODE>
Dim dirReo as New DirectoryInfo
Select case client
case client 1
dirInfo = Server.MapPath(???)
case client 2
dirInfo = Server.MapPath(???)
end select
reportList.DataSource = dirInfo.GetFiles("*.xls")
reportList.DataBind
<END CODE
What do I need to put in the brackets to replace the ???
--
ats@jbex
When an old lady got hit by a truck
I saw the wicked gleam in your eyes
Adam and The Ants - Whip In My Valise
is a page named reports.aspx and 2 folders named client1 and client2. I
have some spreadsheets in each of the folders that are relative to each
individual client. I would like to know how I can use server.mappath to
choose the correct folder depending on which client is logged. For example
I would have the following code on my page behind:
<CODE>
Dim dirReo as New DirectoryInfo
Select case client
case client 1
dirInfo = Server.MapPath(???)
case client 2
dirInfo = Server.MapPath(???)
end select
reportList.DataSource = dirInfo.GetFiles("*.xls")
reportList.DataBind
<END CODE
What do I need to put in the brackets to replace the ???
--
ats@jbex
When an old lady got hit by a truck
I saw the wicked gleam in your eyes
Adam and The Ants - Whip In My Valise