|
You don't need a second copy of the dataset to track the changes yourself. Each row has a RowState property which tracks this so you can validate / undo / whatever
|
|
|
|
|
Thats right. But in this case, second dataset is generated by another application. So I need to get modified and deleted details of second dataset.
Thanks
Muthu.
|
|
|
|
|
Are changes being made to dataSet1 while changes are being made to dataSet2 in the other application?
|
|
|
|
|
Yes. Exactly. Second application returns the modified Dataset. I want to find out the deleted records for each datatable without using any loops.
Thanks
Muthu.
|
|
|
|
|
I am not sure if this is what you want:
for (int i = 0; i <= pTable.Rows.Count - 1; i++)
{
DataRowState rowState = pTable.Rows[i].RowState;
if (rowState == DataRowState.Deleted)
{
//.....
}
}
|
|
|
|
|
Hello, I am a bit new to .NET. It would be great if someone gave me the link from where I can download the C# compiler file csc.exe
|
|
|
|
|
|
Hi,
you will gain it with a .Net Framework implementation.
I suggest you Microsoft .Net 2.0 because of the more rich implementation of the standard (which has more things to be implemented yet).
By installing it, you will have csc.exe file in the framework folder
You can find it searching ".Net Framework" in MSDN download at msdn.microsoft.com
You may prefer for yourself Mono (implementation of the same standard for Linux, which proceed at a lesser peace of Microsoft's one), BSD implementation, and other few which I may have overlooked.
Each one has its own peace and support from the vendor or the community (Microsoft has both), and has gain its own per-cent of the whole standard implemented. You have to Google for Mono since I do not remember the address.
With Microsoft .Net 3.0, just released, you gain a larger implementation of the standard as well a few non-standard implementation Microsoft has decided to put on. This is not proper a new version of the platform, then, but a whole set of additional implementation (however so cool!).
Depending on wich kind of application you are looking for, there are some free and even Open Source IDE you may want to consider for gain a better experience that just the compiler itself.
Hope this help,
Parsiphal
|
|
|
|
|
If your system has .NET 2.0 then you probably will find csc.exe inside
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Luc Pattyn
|
|
|
|
|
|
in the dot net framework directory?
IIRC it's called csc.exe
HTH
Russell
|
|
|
|
|
Simply download the .NET Framework SDK. By the way, there are no visual compilers. There are only IDEs that ease or should ease writing code and free you from specifying all necessary compiler options e.g. to reference assemblies.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
or Nant[^]
Does no one search anymore? A simple google of 'C# compiler' would have given you more than enough information. There's even a codeproject article in the top 3 results.
|
|
|
|
|
Thanks Everyone for all the suggestions.
|
|
|
|
|
I wrote some C# code to send an e-mail using System.Net.Mail.SmtpClient. This allows me to specify the sender, receiver, message, etc., and it works on one SMTP server perfectly. However, when I tried using AOL's SMTP server instead, I was getting authentication failures from their server. Using my regular e-mail program (Eudora), I CAN send to AOL's SMTP server.
The only apparent difference between the two programs is that Eudora does this:
EHLO name..
AUTH LOGIN..
<credentials>..
The program I wrote using SmtpClient does this:
EHLO name..
AUTH LOGIN <credentials>..
AOL's SMPT server rejects the latter, saying "501 INVALID SASL FORMAT OR LENGTH".
I don't know if what AOL's server is doing is breaking any rules or not, but that's kind of beside the point. Is there any way to adjust the SmtpClient object to be more "friendly" to AOL? If not, is there another class I can use?
|
|
|
|
|
I cannot say who is breaing standard, and it's a beside point as you say.
You can try to redefine behavior of SmtpClient, which is not sealed, by wrapping or ovveriding SmtpClient.Credentials.GetCredentials method which is a method of ICredentialsByHost interface.
You have to some tests, i'm not sure: this is just a hint
You can also try to find a way to interact with the underlying soket, using a string-manipulation approach to patch the problem.
Hope this help
Parsiphal
|
|
|
|
|
|
Hi,
does anybody know an alternative WebBrowser-Control?
greets
|
|
|
|
|
Search for Mozilla ActiveX.
|
|
|
|
|
Hi Guys,
I have a set of rows/records retrieved from a database as a result of a SELECT query . I need to show the returned records on a windows form.
whats the easiest and fastest way to do it.
I am using C# and windows's form as an application.
Thanks,.
Ahmed
|
|
|
|
|
The easiest and fastest way is to fill a DataTable with your data and bind that to the DataSource property of a DataGridView Control.
|
|
|
|
|
hello
I make a serialization into a file, and I put there many objects.
How can I deserialize this objects.
For one object I can do that, but I don't know how many objects are there
can u help me ...
10x
|
|
|
|
|
Here's what I recommend you do instead:
put all the objects in a System.Collections.ArrayList. Serialize the array list. When you go to deserialize, deserialize the file to ArrayList, and from there you can extract each serialized element.
|
|
|
|
|
Hi all,
I am new in C# World and working on C# project which uses reflection.
Problem:
I am calling a function from a DLL say ServerDLL (C#)which is loaded by an C# application say MyApp.
I want to invoke some funcition say (SomeFunction)of Class Class1 from another DLL say ClientDLL.
For this I am using following.
<br />
object MyObj = Marshal.GetActiveObject("ServerDLL.Class1")
object[] args = new object[1];<br />
args[0] = my_data_to_pass;
MyObj.GetType().InvokeMember("SomeFunction", BindingFlags.InvokeMethod, null, MyObj, args);<br />
This works fine, but I found these very expensive and taking too much time. Seems that MyObj.GetType() is loading everytime.
I have googled and come to know that these is heavy operation (see reference)
http://msdn.microsoft.com/msdnmag/issues/05/07/Reflection/[^]
I have changed the code to work to load it once,
<br />
<br />
MethodInfo g_MFinfo = MyObj.GetType().GetMethod("SomeFunction", BindingFlags.InvokeMethod);<br />
But I am getting null value g_MFinfo?
Does anyone know what i am doing wrong or probably a good approach?
Thanks in Advance
Abhi Lahare
|
|
|
|
|
Huge question
The point should be where you catch the Object Reference: may be MyObj isn't what you expect to. Try to verify which class you have referred to. Having a null result mean that signature cannot be detected in the class (you may have optionally an exception to be raised instead of null return using a BindingFlag if i'm not joked by my memory).
As long as MyObj is ServerDLL.Class1 your code should work, it seems to me. If you do not come to a point, please write a little demo for us to be tested against. I'm probably not able to come forth with a solution without playing a little with the child.
Sorry, it's all I can do
Parsiphal
|
|
|
|