A Jammed Up Session
by in CodeSOD on 2025-05-15Andre has inherited a rather antique ASP .Net WebForms application. It's a large one, with many pages in it, but they all follow a certain pattern. Let's see if you can spot it.
protected void btnSearch_Click(object sender, EventArgs e)
{
ArrayList paramsRel = new ArrayList();
paramsRel["Name"] = txtNome.Text;
paramsRel["Date"] = txtDate.Text;
Session["paramsRel"] = paramsRel;
List<Client> clients = Controller.FindClients();
//Some other code
}