|
|
I need opinions on how to build the following component...
The file server holds 5 XML files. These 5 XML files (yes, only five) contain all of the data for a rather large enterprise-level application. I need to create a single object to be used in both a web application and a Windows application. Both of these applications will need to insert, update, select, and delete XML nodes and attributes from these same files at the same time.
Obviously, my concerns are file locking and massive memory consumption using multiple instances of this object. Also, the data in each of these files cannot be out of sync at any moment.
Unfortunately, I cannot deviate from these requirements. I'd like some advice on creating the object and using these five files. Any and all ideas are welcome.
Thanx,
Ryan
|
|
|
|
|
I guess the IDataSet object would be fine, as it stores data in native Xml, allows to work offline, loads/saves xml, ...
God luck,
And I swallow a small raisin.
|
|
|
|
|
Yeah, but how will it handle multiple requests coming in for the same instance of the document?
|
|
|
|
|
There is no free lunch whatsoever, you'll have to code something someday...
But IDataSet manage states such like what you may imagine behind methods like HasChanges(), GetChanges(), RejectChanges(), ...
You should give it a try.
And I swallow a small raisin.
|
|
|
|
|
I would like to write a C# program that will allow me create and/or load the image file of a floppy over our company intranet.
I was reading that the WMI in VC++ is the same as the System.Management Namespace in C#. I was wondering if I could use this to achive my goal. Please, let me know if I'm even on the right track. I don't even know what a Management Object is!
Thanks,
TeraCoder
Me, wrong!?! Nah, you just need to change your thinking to make me right.
|
|
|
|
|
Can any one help in finding tutorial/sample for Serial Port Communication (COM)in C#.
thanks,
Sanjeev
|
|
|
|
|
Check this article out ...
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=320
though the author's picture is a bit of a worry
- James
|
|
|
|
|
I read that article but I don't want to use ActiveX control...
|
|
|
|
|
There is an example on MSDN - but I don't have the link handy. No ActiveX, a complete Win32 wrap. It is written in VB however, so you would have to translate it to C#. I'm considering doing that myself, but I'm not sure I could get it right
Bill F
|
|
|
|
|
its probably been asked before, but, i need to find out the icon for a folder, cd drive, etc, i believe this is in the shell32.dll file, but i am not sure how to load resources forom files.
Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk "All programmers are playwrights and all computers are lousy actors."
|
|
|
|
|
|
|
You really need not look further than home.
David Stone
But Clinton wasn't a predictable, boring, aging, lying, eloquent, maintainer-of-the-status-quo. He was a predictable, boring-but-trying-to-look-hip, aging-and-fat-but-seemingly-oblivious-to-it, lying-but-in-sadly-blatant-ways, not-eloquent-but-trying-to-make-up-for-it-by-talking-even-more, bringer-in-of-scary-and-potentially-dangerous-new-policies. And there was also Al Gore. It just wasn't *right*.
Shog9
|
|
|
|
|
|
|
I get an error when I try to do something like:
byte[] myByte;
myByte = (byte[])e.PostData;
Am I doing this wrong?
Nick Parker
|
|
|
|
|
|
Could you show an example, or do you know of a link to one?
Nick Parker
|
|
|
|
|
|
|
|
Not sure, I will go check, I was help someone else here at work with it. I'll go check?
Nick Parker
|
|
|
|
|
Actually he did something different, the MemoryStream didn't error out, however it didn't return anything. He has it working now though, Thanks.
Nick Parker
|
|
|
|
|
I was wanting to replace my 'first' name with an edit that the user has performed. I am breaking up the information well, thanks to Eric Gunnerson's marvelous little regex program.
Regex regName = new Regex( @"?< Last >[^,]+)*(,)*( )*(?< First >\S+)*( )*(?< Middle >.+)$" );
String strFirst = "Jane";
String strCurrent = "Doe, John William";
Match pMatch = regName.Match( strCurrent );
if( pMatch.Success )
{
Group pGroup = pMatch.Groups[ " First " ];
if( pGroup.Index > 0 )
strReplace = strText.Substring( 0, pGroup.Index );
strReplace += strFirst;
if( pGroup.Index + pGroup.Length < strText.Length )
strReplace += strText.Substring( pGroup.Index + pGroup.Length );
}
|
|
|
|