Torna al Thread

protected void Calendar1... { foreach(...) { if(controllo della data, se è lunedì) { ... // carico l'eventuale cliente in base all'utente e la data ddlCliente1.SelectedValue = mioTS.CaricaCliente(User.Identity.Name, lblLun.Text).ToString(); ddlCliente1_SelectedIndexChanged(sender, e); // carico l'eventuale commessa in base all'utente, data e cliente ddlCommessa1.SelectedValue = mioTS.CaricaCommessa(User.Identity.Name, lblLun.Text, ddlCliente1.SelectedValue).ToString(); ddlCommessa1_SelectedIndexChanged(sender, e); ... } ... } } protected void ddlCliente1_SelectedIndexChanged... { ddlCommessa1.Items.Clear(); if (ddlCliente1.SelectedIndex == 0) { ddlCommessa1.Items.Add("scegli commessa 1"); } } protected void ddlCommessa1_SelectedIndexChanged... { Timesheet mioTS = new Timesheet(); // carico le ore di quella commessa txtLun1.Text = mioTS.Carica1(User.Identity.Name, lblLun.Text, ddlCliente1.SelectedValue, ddlCommessa1.SelectedValue).ToString(); }
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5