Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a .Net application (written in C#) that interacts with an XML file. I needed to put Read and Write access on the xml file so the users could read and save data to this xml file, however, placing the Read and Write access will allow anybody to be able to view the xml doc via the web browser.

 

Any ideas how to avoid anyone from accessing the entire xml doc, but still allow users to be able to read and write to it via the .Net application?

 

Thanks for your help...

Posted

Any ideas how to avoid anyone from accessing the entire xml doc, but still allow users to be able to read and write to it via the .Net application?

How about putting the XML file in a directory you can't access through the webbrowser?

 

HTH

/Kejpa

Posted
How about putting the XML file in a directory you can't access through the webbrowser?

 

HTH

/Kejpa

 

I tried that, but in order to have Read and Write access on the text.xml file I would have to have Read and Write access to the folder, correct? Unless there is another way that I am not aware of... Maybe I mis-understood your idea?

 

Thanks for your help...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...