cancel
Showing results for 
Search instead for 
Did you mean: 

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

charles4iNET
Contributor
1 REPLY 1

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

 

Michelle

Developer Community Manager

Michelle
All Star