National Simple The ControlToValidate property of '' RegularExpressionValidator1 '' can not be blank

0

I am developing a query in Simple National, but when giving an HTTPPost in the site link returns me the error

The ControlToValidate property of ''RegularExpressionValidator1'' cannot be blank. 

Follow the query code:

Post.WriteString('__EVENTTARGET='); {Se comento esta linha, me retorna em branco}
Post.WriteString('__EVENTARGUMENT=');
Post.WriteString('__VIEWSTATE=' + FViewState);
Post.WriteString('__EVENTVALIDATION=' + FEventValidation);
Post.WriteString('ctl00$ContentPlaceHolderConteudo$' + FSessao + '=' + OnlyNumber(ACNPJ));
Post.WriteString('ctl00$ContentPlaceHolderConteudo$HiddenField1=' + FSessao);
Post.WriteString('ctl00$ContentPlaceHolderConteudo$hddServidorCaptcha=pro');
Post.WriteString('ctl00$ContentPlaceHolderConteudo$txtTexto_captcha_serpro_gov_br=' + ACaptcha);
Post.WriteString('ctl00$ContentPlaceHolderConteudo$btnConfirmar=Consultar');
Post.WriteString('ctl00_ContentPlaceHolderConteudo_RegularExpressionValidator1=null');
Post.Position := 0;

HttpSend.Clear;
HttpSend.Document.Position := 0;
HttpSend.Document.CopyFrom(Post, Post.Size);
HTTPSend.MimeType := 'application/x-www-form-urlencoded';
HTTPPost('http://www8.receita.fazenda.gov.br/simplesnacional/aplicacoes/atbhe/consultaoptantes.app/consultaropcao.aspx');

Does anyone know why the error? How can I fix it?

    
asked by anonymous 03.07.2018 / 19:20

0 answers