xml newbie help needed!!!

B

Benny

hello all,

i just wrote a guestbook web application using asp.net with c#, and uses
a xml file as the database, and a xslt for displaying the xml data. when
i typed http://localhost/guestbook/guestbook.xml or guestbook.xslt, im
able to see the file contents. unlike a .cs or .config files, they are
explicitly forbidden.
im new in xml, can someone tell me how can i stop people viewing
xml/xslts file contents like the .cs/.config files? or any related
article will be great.

thank you in advanced,

benny
 
J

Jonel Rienton

Benny,

try and look up <httpHandlers> in MSDN library. you can also look at the
entries in your machine.config and see the httpHandlers section.

cheers,
Jonel
 
S

Steve Haun

One thing you might be able to do is write a aspx file which uses SAX
or DOM to compiles the files within the aspx file, and spit out true
html. possibly look at moving the xml/xsl files into a protected
directory.

I'm kinda a newb too, but i have tried this and it works just fine
(using SAX within a aspx file).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top