public void PanelClick(string controlName) { var idControl = controlName.Replace("MainContent_", "").Replace("_pnlMesa", ""); var control = divMesa2.FindControl(idControl); var mesa = ((PnlMesa)control).Mesa; var status = ((PnlMesa)control).Status; SiteMaster.Show(mesa + " - " + status, this); Response.Redirect("~/Pedido?mesa=" + mesa + "&status=" + status); }
protected void Unnamed_Click(object sender, EventArgs e) { Button clickedButton = (Button)sender; SiteMaster.Show("Novo Pedido Aberto", this); }