472,093 Members | 2,520 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,093 software developers and data experts.

XmlDocument.Load

Hi all,
I use a Word Xml Template in ASP.Net application. Basically when a user
clicks on a certain button on a web form, I open the template using
XmlDocument.Load method; replace some strings in the document with user
selected values; and save the document with a unique name generated at
runtime. Everything works fine in the test environment. But before I deploy
the application, I would like to ask one question - If two users
simultaneously click the button to generate the document; would the
XmlDocument.Load method allow both users to load the document? If not, is
there any other way to achieve this?

Thanks.
-Nikhil
Nov 16 '05 #1
2 5897
Since Load is only reading the file, you should be fine.

--
Patrik Löwendahl [C# MVP]
www.cshrp.net - "Elegant code by witty programmers"
"Nikhil Patel" <do*******@nospaml.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi all,
I use a Word Xml Template in ASP.Net application. Basically when a user
clicks on a certain button on a web form, I open the template using
XmlDocument.Load method; replace some strings in the document with user
selected values; and save the document with a unique name generated at
runtime. Everything works fine in the test environment. But before I
deploy the application, I would like to ask one question - If two users
simultaneously click the button to generate the document; would the
XmlDocument.Load method allow both users to load the document? If not, is
there any other way to achieve this?

Thanks.
-Nikhil

Nov 16 '05 #2
Nikhil Patel wrote:
Hi all,
I use a Word Xml Template in ASP.Net application. Basically when a
user
clicks on a certain button on a web form, I open the template using
XmlDocument.Load method; replace some strings in the document with user
selected values; and save the document with a unique name generated at
runtime. Everything works fine in the test environment. But before I
deploy the application, I would like to ask one question - If two users
simultaneously click the button to generate the document; would the
XmlDocument.Load method allow both users to load the document? If not, is
there any other way to achieve this?
Can't you make it a global variable to be loaded in the global.asax file
( Session/Application vars can have complex datatypes ) ? Then you could
load it once in the Application_OnStart event and access it via an
Applcation variable?

If you were doing reads and writes and updates, then you could have to
consider a more complex threadsafe technology such as mutexes or
Application Blocks.

Thanks.
-Nikhil


--
http://www.texeme.com

Clusty is the coolest search engine!
http://clusty.com
Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ayende Rahien | last post: by
1 post views Thread by Martin Honnen | last post: by
2 posts views Thread by Graham Pengelly | last post: by
5 posts views Thread by Rob Panosh | last post: by
1 post views Thread by Gustaf | last post: by
2 posts views Thread by supercodepoet | last post: by
4 posts views Thread by =?Utf-8?B?TWFyaw==?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.