Board index » Visual Studio » Reading in an ASP page with VB?

Reading in an ASP page with VB?

Visual Studio31
I just did a search and didn't really see anybody talking about this.

I am familiar with FSO, but would it be possible to read in an ASP file

(as text) from a webserver via Visual Basic as long as the application

has permissions to that folder/file via the network (not from an HTTP

request)? It would seem likely to me, but would someone please confirm

this before I go telling some co-workers on my project that it wouldn't

be an issue?



I don't have the resources available to me to do a quick ad hoc test on

this, so any help would be appreciated, thanks!


-
 

Re:Reading in an ASP page with VB?

"ToMo" <tsigler@gmail.com>wrote in message

Quote
I just did a search and didn't really see anybody talking about this.

I am familiar with FSO,



Sorry to hear that. You should try using VB's native file I/O instead. It

is faster, uses less overhead, eliminates a dependency and doesn't fall

victim to being disabled.



Quote
but would it be possible to read in an ASP

file (as text) from a webserver via Visual Basic as long as the

application has permissions to that folder/file via the network (not

from an HTTP request)?



Sure. It may be a bit unusual to have an app reading a web server directory

directly but as long as the shares exist and the permissions allow it it's

just another file. You'll get the actual ASP file text and not the

formatted HTML text but I'm assuming that's what you want. If you want the

HTML that the client sees you'll need to go through the web server via an

http request.



Quote
It would seem likely to me, but would someone

please confirm this before I go telling some co-workers on my project

that it wouldn't be an issue?



I don't have the resources available to me to do a quick ad hoc test

on this, so any help would be appreciated, thanks!



--

Reply to the group so all can participate

VB.Net: "Fool me once..."



-

Re:Reading in an ASP page with VB?



"ToMo" <tsigler@gmail.com>wrote in message



Quote
I am familiar with FSO, but would it be possible to read in an ASP file

(as text) from a webserver via Visual Basic as long as the application

has permissions to that folder/file via the network (not from an HTTP

request)?



A file is a file is a file.





-

Re:Reading in an ASP page with VB?

Awesome, thanks for the info Bob! I kinda figured it wouldn't be an

issue, but assumptions have gotten me into pickles enough times that I

try not to make them if at all possible.



-Tom



-

Re:Reading in an ASP page with VB?

Oh yeah, and just an explanation, the file I want to read in is an ASP

include file that has a constant value setting that I need to pull...



-

Re:Reading in an ASP page with VB?



"ToMo" <tsigler@gmail.com>wrote in message



Quote
Oh yeah, and just an explanation, the file I want to read in is an ASP

include file that has a constant value setting that I need to pull...



Are you trying to extend your question or just giving us an FYI?





-