|
I know but the reason I did because I just needed a .NET based solution regardless of technology(c#,vb.net) because I don't have much time.
I admit my mistake but had no choice
|
|
|
|
|
Is there a way that i can create a Serializer Similiar to the XmlSerializer. the data that i am working with is kinda like a hash file. I would like to be able to stick some attributes to my objects/properties and serialize the hashed data to workable objects and back into formatted data. Could someone point me in the right direction?
Thanks!
Don't be overcome by evil, but overcome evil with good
modified on Wednesday, December 26, 2007 10:51:03 AM
|
|
|
|
|
You can implement the ISerializable interface on your class and handle the serialization events
only two letters away from being an asset
|
|
|
|
|
Hey Mark, Thanks for your reply. Looking at the ISerializable i don't think i am able to use this. The kind of data that i am working with is a pipe delemited file (ex Adam|1550 Robin St. Tampa, FL). What i'd like to do is take this string and add it to a "Customer Object" so i can just manipulate the data using the properties. Then when i am done w/ i'll then be able to serialize it in the original format. ISerializable Interface uses the SerializtionInfo which gets/adds data by keys and i can't store the keys in this data.
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Unless I'm missing something you're not saying. The file is already the serialized representation of your objects.
only two letters away from being an asset
|
|
|
|
|
I don't know how to explain it man. I'll try and figure something out. Thank you for your time.
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Hi,
Is there any module available (Open Source/Buy) which can do a Diebold 912 Message parsing and formatting. Sends the message as byte stream to a IP or Port. Some thing similar as JPOS for 8583.
|
|
|
|
|
Not sure.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Paul Conrad wrote: Not sure.
i couldnt get you
|
|
|
|
|
Not sure if there is one. Might try google?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi....
I am developing project using c# with asp.net 2005....
here I am using start date and end date....whenever inserting date into database(date format is dd/mm/yyyy 00:00:00)...whenever update (edit) the date I want date format mm/dd/yyyy without time...
anybody know please reply me.....
Rajendran.AL
|
|
|
|
|
I've done something like that it was something like objDatetime.ToString("T")
try it out
hope it helps
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
Let's get this straight - you have a valid date in DD/MM/YYYY and you want to change it to MM/DD/YYYY? Why don't you manipulate the string directly?
As an aside, why do you rely on the database to interpret it as MM/DD/YYYY? YYYY-MM-DD is universally accepted and much better.
Cheers,
Vikram.
"If a trend is truly global, then that trend ought to be visible across ANY subset of that data" - fat_boy
|
|
|
|
|
Vikram A Punathambekar wrote: YYYY-MM-DD is universally accepted and much better
Right, it's ISO 8601 compliant.
Plus, I hope the data is being stored in a DateTime, not a string.
|
|
|
|
|
You can try this:CONVERT(varchar(10),date,120),I think this function can do that.
Always do you best,what you plant you will harvest
later!
|
|
|
|
|
Hi
Can you suggest a way to achieve SSO in domain using ASP.net and C#.
Reena.
|
|
|
|
|
hi
i have a backgroundWorker object in my form, and set WorkedReportProgress to true and write this code for some eventhandlers :
<code>private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
int i = 0;
while (i < 1000)
{
this.backgroundWorker1.ReportProgress(i); // not trigged
i++;
}
}
private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
this.toolStripStatusLabel1.Text = e.ProgressPercentage.ToString();
}
</code>
when i trace my app in runTime, in while loop, i call backgroundWorker1.ReportProgress method to raise
backgroundWorker1_ProgressChanged, but it does not raise, where does my problem and how to solve it ?
thanks
|
|
|
|
|
haveu added the event handler like this
backgroundWorker1.ProgressChanged+= new EventHandler(backgroundWorker1_ProgressChanged)
I think this could be the problem
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
thanks
where i write your suggestion code ?
|
|
|
|
|
write it in the page_load method or the constructor
hope it helps
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
thanks
i write your code in Form1_Load :
this.backgroundWorker1.ProgressChanged += new EventHandler(this.backgroundWorker1_ProgressChanged);
but the follwoing error has shown me :
No overload for 'backgroundWorker1_ProgressChanged' matches delegate 'System.EventHandler'
|
|
|
|
|
ok try doing it in this sequence
type
1) this.backgroundWorker1.ProgressChanged+=
2) then as soon as u press the = key you'll see a tooltip
3) press tab twice
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
BackgroundWorker w = new BackgroundWorker();<br />
w.ProgressChanged += new ProgressChangedEventHandler(w_ProgressChanged);
ok now I've checked it on my system.
that's the code
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|
|
thanks for reply
but my problem was not solved.
i call ProgressChanged event handler manually, and solve problem :
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)<br />
{ <br />
int i = 0;<br />
while (i < 1000)<br />
{<br />
this.backgroundWorker1_ProgressChanged(null, new ProgressChangedEventArgs(i,i));<br />
i++;<br />
}<br />
}
but why it does not raise ?
thanks
|
|
|
|
|
this.backgroundWorker1.ReportProgress(i);
you shuld be using this to report progress as this will raise the ProgressChanged event which will inturn invoke the method refered to by the delegate given at the top (when u did something like
w.ProgressChanged += new ProgressChangedEventHandler(w_ProgressChanged);
)
rest of the logic is upto u but tryin this
hdv212 wrote: this.backgroundWorker1_ProgressChanged(null, new ProgressChangedEventArgs(i,i));
is simply meaningless
Rocky
Success is a ladder which you can't climb with your hands in your pockets.
|
|
|
|