Click here to Skip to main content
14,739,110 members
Home » Discussions » ASP.NET
   

ASP.NET

 
GeneralRe: Scrape with htmlagilitypack problems Pin
Member 175325018-Dec-19 12:22
MemberMember 175325018-Dec-19 12:22 
QuestionASP.Net MVC: How data is serialize into model when pass to client side from action Pin
Mou_kol15-Dec-19 10:33
MemberMou_kol15-Dec-19 10:33 
AnswerRe: ASP.Net MVC: How data is serialize into model when pass to client side from action Pin
Richard Deeming16-Dec-19 9:30
mveRichard Deeming16-Dec-19 9:30 
GeneralRe: ASP.Net MVC: How data is serialize into model when pass to client side from action Pin
Mou_kol24-Dec-19 22:14
MemberMou_kol24-Dec-19 22:14 
GeneralRe: ASP.Net MVC: How data is serialize into model when pass to client side from action Pin
Richard Deeming7-Jan-20 9:09
mveRichard Deeming7-Jan-20 9:09 
QuestionHow do I change this code using Inheritance? Pin
Marc Hede12-Dec-19 22:39
MemberMarc Hede12-Dec-19 22:39 
AnswerRe: How do I change this code using Inheritance? Pin
Richard MacCutchan12-Dec-19 23:15
mveRichard MacCutchan12-Dec-19 23:15 
AnswerRe: How do I change this code using Inheritance? Pin
phil.o12-Dec-19 23:23
mvephil.o12-Dec-19 23:23 
You can do it (creating a person class then a keycard class inheriting from person class), that is not hard at all. Give it a try. For serialization, you just have to mark both classes with Serializable attribute. Schematically:
[Serializable]
public class Person
{
   // your implementation here
}

[Serializable]
public class KeyCard : Person
{
   // your implementation here
}

Regarding the serialization format, you could use a XmlFormatter instead of a BinaryFormatter. Or a XmlSerializer which allows to customize the formatting process even further. Finally, you could also opt in for a JSON serialization.
Showing a binary output in a web application would not be very usefull: do you know anyone willing to read binary format and make sense out of it? Smile | :)
Cheers.
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."

GeneralRe: How do I change this code using Inheritance? Pin
Marc Hede12-Dec-19 23:57
MemberMarc Hede12-Dec-19 23:57 
GeneralRe: How do I change this code using Inheritance? Pin
phil.o13-Dec-19 0:26
mvephil.o13-Dec-19 0:26 
GeneralRe: How do I change this code using Inheritance? Pin
Marc Hede13-Dec-19 0:49
MemberMarc Hede13-Dec-19 0:49 
GeneralRe: How do I change this code using Inheritance? Pin
F-ES Sitecore13-Dec-19 0:59
mveF-ES Sitecore13-Dec-19 0:59 
GeneralRe: How do I change this code using Inheritance? Pin
Marc Hede13-Dec-19 1:17
MemberMarc Hede13-Dec-19 1:17 
GeneralRe: How do I change this code using Inheritance? Pin
phil.o13-Dec-19 1:52
mvephil.o13-Dec-19 1:52 
GeneralRe: How do I change this code using Inheritance? Pin
F-ES Sitecore13-Dec-19 1:54
mveF-ES Sitecore13-Dec-19 1:54 
GeneralRe: How do I change this code using Inheritance? Pin
Richard Deeming13-Dec-19 1:58
mveRichard Deeming13-Dec-19 1:58 
GeneralRe: How do I change this code using Inheritance? Pin
Richard MacCutchan13-Dec-19 1:00
mveRichard MacCutchan13-Dec-19 1:00 
GeneralRe: How do I change this code using Inheritance? Pin
Marc Hede13-Dec-19 1:25
MemberMarc Hede13-Dec-19 1:25 
GeneralRe: How do I change this code using Inheritance? Pin
Richard MacCutchan13-Dec-19 1:44
mveRichard MacCutchan13-Dec-19 1:44 
QuestionHistogram in Asp.net using canvas js Pin
pooja thombare11-Dec-19 21:47
Memberpooja thombare11-Dec-19 21:47 
AnswerRe: Histogram in Asp.net using canvas js Pin
Richard MacCutchan11-Dec-19 22:16
mveRichard MacCutchan11-Dec-19 22:16 
JokeRe: Histogram in Asp.net using canvas js Pin
Richard Deeming12-Dec-19 13:54
mveRichard Deeming12-Dec-19 13:54 
AnswerRe: Histogram in Asp.net using canvas js Pin
phil.o12-Dec-19 0:05
mvephil.o12-Dec-19 0:05 
QuestionI can´t get any output from XML and Binary. Pin
Marc Hede8-Dec-19 4:51
MemberMarc Hede8-Dec-19 4:51 
AnswerRe: I can´t get any output from XML and Binary. Pin
Richard MacCutchan8-Dec-19 6:15
mveRichard MacCutchan8-Dec-19 6:15 

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.