private void init() { ViewState["first"] = Boolean.TrueString; linkedUvs = myUvDb.GetLinkedUvs(User.Identity.GetUserId()); if (linkedUvs.Count > 0) { RadioButtonList_ChoixUV.Items.Clear(); foreach (UV u in linkedUvs) { RadioButtonList_ChoixUV.Items.Add(u.Denomination); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) // la page ne se recharge pas { ViewState["first"] = Boolean.TrueString; linkedUvs = myUvDb.GetLinkedUvs(User.Identity.GetUserId()); if (linkedUvs.Count > 0) { RadioButtonList_ChoixUV.Items.Clear(); foreach (UV u in linkedUvs) { RadioButtonList_ChoixUV.Items.Add(u.Denomination); } } } }