isto é possível ? asp.net - C#

jigoro

Power Member
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
currentUser = ((User)Session["CurrentSession"]);
tableAuditorias = BLLM.ReadM251(currentUser.NIF, currentUser.CodEstabelecimento);
Session.Add("TableAuditorias", tableAuditorias);
tableServicosInternos = BLLM.ReadM222(currentUser.NIF, currentUser.CodEstabelecimento);
Session.Add("TableServicosInternos", tableServicosInternos);
ObjectDataSource1.SelectParameters["NIF"].DefaultValue = currentUser.NIF.ToString();
}
if (Page.IsPostBack)
{
if (tableAuditorias == null)
tableAuditorias = ((DataTable)Session["TableAuditorias"]);
else if (tableServicosInternos == null)
tableServicosInternos = ((DataTable)Session["TableServicosInternos"]);
}

}

vou ter criar mais umas 10 tables será que é correcto fazer assim? cada table terá um M222 diferente
 
Back
Topo