Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Separate values from a string

Tags:

c#

c#-4.0

I have a string, with data as shown below. How I read separately each property values.

ie PCIaaS_CardId=value; BillingFirstName=value;

PCIaaS_CardId=value&BillingFirstName=value&BillingLastName=value&BillingCompanyNamevalues=&BillingAddress1=value&BillingAddress2=values&BillingCity=value

like image 621
ellickakudy rajeesh Avatar asked May 07 '26 12:05

ellickakudy rajeesh


1 Answers

That looks like a HTTP query string, for which you can use HttpUtility.ParseQueryString.

like image 68
CompuChip Avatar answered May 10 '26 03:05

CompuChip



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!