RestSharp RestRequest.AddParameter Carriage Return

Hi,

i am having an issue gettings ome formatting into the description.

I would like the description to look like the following:

 

HyperLink

------------------

Additional Data

 

I am using the following code to create the description

RestRequest request.AddParameter(strParamName, "TEST \r\n TEST");

The Result is TEST TEST. \r\n is being removed.

 

Any help would be highly appreciated.

 

Thanks.

 

-Alex

 

1
2 comentarios
Spot On Innovative Approach Stellar Advice
Avatar

Just found the solution by manually creating a description and reading into the c# programm.

HTML <br> Tag

is the solution.

 

1
Acciones de comentarios Permalink
Spot On Innovative Approach Stellar Advice
Avatar

This worked great for my needs. I also found that other HTML tags such as <b> worked as expected.

0
Acciones de comentarios Permalink

Folllowing List for Post: RestSharp RestRequest.AddParameter Carriage Return
[this list is visible for admins and agents only]

Didn’t find what you were looking for? Write new post