Click here to Skip to main content
15,904,877 members
Home / Discussions / Web Development
   

Web Development

 
QuestionPlease help me to transfer data between elements in a web form. Pin
lersmethasakul9-Apr-14 13:07
lersmethasakul9-Apr-14 13:07 
SuggestionRe: Please help me to transfer data between elements in a web form. Pin
thatraja15-Apr-14 21:03
professionalthatraja15-Apr-14 21:03 
AnswerRe: Please help me to transfer data between elements in a web form. Pin
Ali Al Omairi(Abu AlHassan)15-Apr-14 21:52
professionalAli Al Omairi(Abu AlHassan)15-Apr-14 21:52 
QuestionInstallaing SSL Certificate into server which contains load balancer Pin
Arindam Tewary9-Apr-14 5:02
professionalArindam Tewary9-Apr-14 5:02 
AnswerRe: Installaing SSL Certificate into server which contains load balancer Pin
237419-Apr-14 5:45
237419-Apr-14 5:45 
GeneralRe: Installaing SSL Certificate into server which contains load balancer Pin
Arindam Tewary22-Apr-14 0:05
professionalArindam Tewary22-Apr-14 0:05 
QuestionWhether PHP read shared memory which is created using C++ Pin
shanmugarajaa8-Apr-14 20:30
shanmugarajaa8-Apr-14 20:30 
QuestionWEB API Serialization Problem? Pin
Kevin Marois7-Apr-14 9:38
professionalKevin Marois7-Apr-14 9:38 
I'm VERY new to Web API and Web development in general.

I have a GetClient method in my controller.

[HttpGet]
public Response GetClient(int entityId)
{
	return BO.GetClient(entityId);
}


It returns a Response object:

[DataContract]
[Serializable]
public class Response
{
    [DataMember]
    public object Data { get; set; }

    [DataMember]
    public Result Result { get; set; }

    [DataMember]
    public string Message { get; set; }

    private Exception _Exception;
    [DataMember]
    public Exception Exception
    {
        get { return _Exception; }
        set
        {
            if (_Exception != value)
            {
                _Exception = value;

                Message = _Exception.Message;
                Result = Result.Failure;
                Data = null;
            }
        }
    }
}


When I call it I get back a null Response object. If I paste the ResponseUri into a browser it comes back with:

{"Data":{"ClientName":"MyClient","IsDirty":false,"RowState":4,"Id":1,"UniqueId":"00000000-0000-0000-0000-000000000000","IsActive":true,"IsDeleted":false,"CreatedByEmployee":null,"CreatedDate":null,"ModifiedByEmployee":null,
"ModifiedDate":null},"Result":0,"Message":"","Exception":null}


So it looks like some kind of serialization problem. I have no idea how to fix this,. Any thoughts on what to do:

Thanks
If it's not broken, fix it until it is

AnswerRe: WEB API Serialization Problem? Pin
Richard Deeming7-Apr-14 10:33
mveRichard Deeming7-Apr-14 10:33 
GeneralRe: WEB API Serialization Problem? Pin
Kevin Marois7-Apr-14 12:34
professionalKevin Marois7-Apr-14 12:34 
GeneralRe: WEB API Serialization Problem? Pin
Richard Deeming8-Apr-14 2:29
mveRichard Deeming8-Apr-14 2:29 
GeneralRe: WEB API Serialization Problem? Pin
Kevin Marois8-Apr-14 4:49
professionalKevin Marois8-Apr-14 4:49 
GeneralRe: WEB API Serialization Problem? [UPDATED] Pin
Kevin Marois27-Apr-14 17:15
professionalKevin Marois27-Apr-14 17:15 
GeneralRe: WEB API Serialization Problem? [UPDATED] Pin
Richard Deeming28-Apr-14 1:49
mveRichard Deeming28-Apr-14 1:49 
QuestionOAuth 2.0 SSL Certificate Requirements Pin
Jammer4-Apr-14 1:15
Jammer4-Apr-14 1:15 
QuestionTelerik / Kendo grid using t-no-data Pin
littleGreenDude2-Apr-14 3:24
littleGreenDude2-Apr-14 3:24 
AnswerRe: Telerik / Kendo grid using t-no-data Pin
littleGreenDude4-Apr-14 1:15
littleGreenDude4-Apr-14 1:15 
QuestionLoading large XML file ( 222 MB) in HTML using java script problem Pin
sma123#31-Mar-14 3:55
sma123#31-Mar-14 3:55 
AnswerRe: Loading large XML file ( 222 MB) in HTML using java script problem Pin
User 171649231-Mar-14 4:44
professionalUser 171649231-Mar-14 4:44 
GeneralRe: Loading large XML file ( 222 MB) in HTML using java script problem Pin
sma123#31-Mar-14 20:47
sma123#31-Mar-14 20:47 
GeneralRe: Loading large XML file ( 222 MB) in HTML using java script problem Pin
User 171649231-Mar-14 21:59
professionalUser 171649231-Mar-14 21:59 
QuestionOptimize HTML markup size: How to exclude Microdata+ARIA? Pin
Sergejack30-Mar-14 21:25
Sergejack30-Mar-14 21:25 
Questionjson in HTML5 Pin
Jassim Rahma30-Mar-14 13:03
Jassim Rahma30-Mar-14 13:03 
AnswerRe: json in HTML5 Pin
Sergejack30-Mar-14 22:27
Sergejack30-Mar-14 22:27 
GeneralRe: json in HTML5 Pin
Jassim Rahma30-Mar-14 23:28
Jassim Rahma30-Mar-14 23:28 

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.