I have a custom web control which want to add to a project of mine. I want to render this control for every request to the acumatica. But It renders only once and not redering for the subsequent requests. (Ex: Button clicks)
public class ProgressBarControl : PXWebControl
{
public int Progress { get; set; } // Progress percentage (0-100)
protected override void Render(HtmlTextWriter writer)
{
writer.AddAttribute("style", $"width: {Progress}%; background-color: green; height: 20px;");
writer.RenderBeginTag(HtmlTextWriterTag.Div);
writer.Write($"{Progress}%");
writer.RenderEndTag();
}
}