1
Good afternoon, my dear, I have an ASP.NET Webform project that reads the form post using the Request.Form method. I play this method in a string but it comes full of space characters. s Excerpt from the code --
string[] ctrl = Request.Form.ToString().Split('&');
foreach (string item in ctrl)
{
if (item.ToString().Contains("DropDownList="))
{
string[] control = item.ToString().Split('=');
if (control[0].ToString() != "andaresDropDownList" && control[0].ToString() != "periodoDropDownList")
{
--
The first line is that makes the method return but see the result in the attachment,
![Retorno chamada método para variável string[]](https://i.stack.imgur.com/1HrMw.png)
For example the phrase returned "no spots" returns "no spots" Another example. Cabinets returns Arm%C3%a1rios
Can you help me?
Grateful and waiting.
Good rest of the day.
Managed to solve?
– Leandro Angelo