Click here to Skip to main content
15,913,055 members
Home / Discussions / C#
   

C#

 
GeneralRe: **** The DataGrids! All of them! Pin
James T. Johnson6-Mar-02 14:52
James T. Johnson6-Mar-02 14:52 
GeneralRe: **** The DataGrids! All of them! Pin
Domenic Denicola6-Mar-02 15:08
Domenic Denicola6-Mar-02 15:08 
GeneralRe: **** The DataGrids! All of them! Pin
James T. Johnson6-Mar-02 15:36
James T. Johnson6-Mar-02 15:36 
GeneralErrors & Exceptions in C# Pin
Anand Amirineni5-Mar-02 13:05
Anand Amirineni5-Mar-02 13:05 
GeneralRe: Errors & Exceptions in C# Pin
James T. Johnson5-Mar-02 15:50
James T. Johnson5-Mar-02 15:50 
GeneralRe: Errors & Exceptions in C# Pin
7-Mar-02 18:17
suss7-Mar-02 18:17 
QuestionHow to store an object into a database? Pin
5-Mar-02 9:17
suss5-Mar-02 9:17 
AnswerRe: How to store an object into a database? Pin
James T. Johnson5-Mar-02 10:06
James T. Johnson5-Mar-02 10:06 
Off the top of my head,

create a binary field in your database, this should be large enough to hold the serialized object; this depends on how many fields/properties the object has (and any sub-objects).

Now create a new memory stream, pass the stream into the binary formatters serialize method to serialize the object to the stream. Now fill the field with the contents of the memory stream.

Object is now serialized in your database Smile | :)

That was my plan for a project where I wanted to do the same thing, but work caught up to me so I never got to implement it.

HTH,

James

Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978

AnswerRe: How to store an object into a database? Pin
James T. Johnson6-Mar-02 10:20
James T. Johnson6-Mar-02 10:20 
GeneralRe: How to store an object into a database? Pin
AndyG6-Mar-02 18:26
AndyG6-Mar-02 18:26 
Generalhelp in treeview needed Pin
4-Mar-02 22:38
suss4-Mar-02 22:38 
GeneralRe: help in treeview needed Pin
Anand Amirineni5-Mar-02 14:12
Anand Amirineni5-Mar-02 14:12 
QuestionHow to use SSL Pin
Felix Nielsen4-Mar-02 9:19
Felix Nielsen4-Mar-02 9:19 
QuestionHow to sublass visually a C# class Pin
4-Mar-02 6:03
suss4-Mar-02 6:03 
AnswerRe: How to sublass visually a C# class Pin
James T. Johnson4-Mar-02 14:12
James T. Johnson4-Mar-02 14:12 
GeneralRe: How to sublass visually a C# class Pin
5-Mar-02 3:19
suss5-Mar-02 3:19 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson5-Mar-02 7:37
James T. Johnson5-Mar-02 7:37 
GeneralRe: How to sublass visually a C# class Pin
6-Mar-02 2:44
suss6-Mar-02 2:44 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson6-Mar-02 9:02
James T. Johnson6-Mar-02 9:02 
GeneralRe: How to sublass visually a C# class Pin
6-Mar-02 10:59
suss6-Mar-02 10:59 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson6-Mar-02 12:42
James T. Johnson6-Mar-02 12:42 
GeneralRe: How to sublass visually a C# class Pin
7-Mar-02 3:31
suss7-Mar-02 3:31 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson7-Mar-02 6:06
James T. Johnson7-Mar-02 6:06 
QuestionAre ownerdrawn buttons available? Pin
4-Mar-02 3:53
suss4-Mar-02 3:53 
AnswerRe: Are ownerdrawn buttons available? Pin
James T. Johnson4-Mar-02 14:23
James T. Johnson4-Mar-02 14:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.