troubleshooting Question

Get value fron Response.Header

Avatar of Andy Green
Andy GreenFlag for United Kingdom of Great Britain and Northern Ireland asked on
ASP.NET* restful webservices* ASP.NET Core
3 Comments1 Solution9 ViewsLast Modified:
Request.Headers has a results view when looking in debug

Item (3) in the results view is the parameter I need.

Dim a = Request.Headers("GroupId").Value throws an exception:

System.InvalidCastException: 'Conversion from string "GroupId" to type 'Integer' is not valid.'

I need this value as an int as its needed for a method call.

How do I best iterate over the ResultsView to get the GroupId as an Integer?

David H.H.Lee
Digital Marketing (Hospitality)
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros