|
You need a get/set methods on properties for proper serializations. You get the reflection error because of the absence of the "set" method.
With XmlIgnore, the serialization simply ignores the property, hence you get no error.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
Hi Michel,
Thank for the suggestion. But sadly you're mistaken.
Adding a set method isn't necesarry (XML reflection code should ignore the property), but even if I add the set method, the error still occurs.
Jesper
|
|
|
|
|
Jesper1966 wrote: But sadly you're mistaken
Unfortunatelay, I am human.
But I am a little surprised. I suggest, as you are already on the path to knowledge, to pursue on this avenue and keep me informed.
Thanks,
Michel
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
Hi Friends,
I have used DataGrid in my application. My client requirement is the field change is written to the database as soon as the user navigates away from the field. Please suggest me how to do it.
Regards,
Prakash.
A Journey of thousand miles must begin with a single step.
|
|
|
|
|
Firstly, how are you databinding the data to the datagrid. Secondly, when you say "written to the database", do you mean a local or remote database?
|
|
|
|
|
Hi,
Did you mean how can i associate the data to my Grid ?
I have use thed following code to specify the datasource for my GridControl
DataView curView = ScheduleDataSet.Tables[ScheduleTableName].DefaultView;
curView.AllowEdit = true;
curView.AllowNew = false;
curView.AllowDelete = true;
dataGrid1.DataSource = curView;
So whenever the user modifies the data in the edit field, we have to reflect the changes in assoicated Dataset and the corresponding database also(in this case we have used the database as mysql).
Regards,
Prakash.
A Journey of thousand miles must begin with a single step.
|
|
|
|
|
This is the message I keep getting more often the last few weeks..
And I only get it with my .Net Applications ...
The real question is why ?
I've reinstalled my .Net Framework ( 1.1 and 2.0 )
And the error still persisted
I reinstalled windows ( didn't format it ) and I still got it...
Finally I deleted the files and recompiled everything ? It worked... but the debug still gives that error ... Have to mention that this is the first time I ever received the error...
Do you know of any viruses that could cause something like this ? ???
I have a backup of my program ( the one I'm working for about 4 months .. and it's verry big ) Didn't get the message here... so I'm hoping it's a virus that I have at home /??
Does anyone know of any reason for why the message appears when I execute a program written in DotNET ?
Lazar Mihai
Highschool student
|
|
|
|
|
Do you have the right .net framework version installed? x86/amd64 for you processor?
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
yes... I have the write framework... i wrote the damn think
I should have it.. since I designed it ...
It's framework2.0... anyway ... it's probably a virus... formating should solve it ...
I can't figure out any other solution
Lazar Mihai
Highschool student
|
|
|
|
|
Did you write the .NET Framework 2 on your own or get some of your mates to help?
|
|
|
|
|
>... I was talking about .. my program... not the framework but I can see how you could confuse it ... sorry ...
Lazar Mihai
Highschool student
|
|
|
|
|
Lazar Mihai ( Sharp Override ) wrote: Do you know of any viruses that could cause something like this ? ???
I cannot name any specific virus, but I think a lot of them try to attach themselves to .exe files and are not aware that .NET assemblies have a different file format.
|
|
|
|
|
What do you mean "execute a program written in DotNET ?"? Did you write this program yourself? What compiler are you using?? Use ildasm first to make sure you have a valid .Net Assembly let alone something that is runable.
|
|
|
|
|
Hi all, i have a question: it's possible to fill a dataset with all the tables of my database?
thanx
|
|
|
|
|
I think it may be possible. The dataset has Tables collection which stores all the tables that u are storing. U have to test it by using maximum number of tables.
Regards,
Sandy Sekhon
|
|
|
|
|
Thanx but i can fill my dataset with select command, and the select command it's possible only at one table.
If i have a database with no tables and i want to adding a table by code i dont know how i can do this.
Regards
|
|
|
|
|
I had the same question a while ago... it's verry simple
you take a command object for example :
OleDbCommand createTable = new OleDbCommand();
createTable.Connection = aValidConnectionObject;
createTable.CommandText = "CREATE TABLE TableName
{
obj varchar(0),
}
";
I'm not sure on the sql part... but that is the main idea.
I have an example written at school .. have to look into it!
Lazar Mihai
Highschool student
|
|
|
|
|
Hi all,
Can anybody provide me the code for zipping a folder and all its subfolder in a zip file and other utility to unzip any zipped file.
|
|
|
|
|
|
referring to this thread [^] :
i use access 2003 and i'm creating a software that uses Access Database (.mdb) jointly the .exe to archive some information.
I don't want to use SQL server or MySQL couse i've not the license and i don't want the user forced to buy one.
So i use Microsoft Access Database that is more elastic and easy.
Now when i got intallation of Access 2003 i don't saw the option JET or Other... so how can decide to install the one more performant Access?
If i decide to use JET with Access 2003, how do i create store procedure within?
Referring to crypted password within webconfig, can you show me some web pages that talk about that?
Vary vary thanks
|
|
|
|
|
Hi everybody, I have a problem marshalling char**. It's supposed to be an array of strings, returned by C++ dll function. The function returns structure, which contains several members, and some of them are char**. How to marshall them? Pls. help me with the problem, I'm stuck on it for ages...
Ceno
|
|
|
|
|
Is there possible to customize the text shown into the dialog that displays the page that is beeing printed onto a printPreviewDialog?
protected internal static readonly ... and I wish the list could continue ...
|
|
|
|
|
Hi folks, anyone know how to access files using a unc name and a fileStream? The user will have to provide the correct login details on a form i have created but i don't know how to create the connection to get at the files.
Cheers
Kev
|
|
|
|
|
how to impove efficiency by using BULK INSERT statement?
-----------------------------------------------------------------
hi, all
the flow we used.
A.txt ---format by row--->B.txt---using BULK INSERT statement---> SQL Server (tableC).
after import data to tableC, we need create indexes on tableC.
Now, we have many clients have files which rather than 2GB. so we need impove efficiency to import data to SQL server.
Any assistance would be really appreciated.
|
|
|
|
|