Reply
Highlighted
Contributor
Posts: 14
Registered: ‎03-08-2012

FYI ASP MVC C# System.Web.Mvc.ValueProviderResult relay_response

As I was dealing with a previous concern I stumbled upon this little tidbit of info

 

When harvesting data from relay_response post from AuthNet

 

 

ViewData["problem1Get"] = post.GetValue("x_response_code").ToString(); 

//Litterally returns a 34 character  length string that reads    ----->   "System.Web.Mvc.ValueProviderResult"

 

Where as   ViewData["problem2Direct"] = post["x_response_code"].ToString(); gives you the integer your

trying to evaluate.

 

OOPS !!!!!! 

 

Happpy Coding

Highlighted
All Star
Posts: 1,072
Registered: ‎08-17-2009

Re: FYI ASP MVC C# System.Web.Mvc.ValueProviderResult relay_response

Thanks for posting this! Hopefully it'll help others. :smileyhappy:

 

Michelle

Developer Community Manager