mi dispiace ma non capisco. a me sembra corretto![]()
ho indentato, cosa c'è che non va?
codice:private void TopProductRepeater_ItemCreated(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { if(Session["user"]==null) { ((Panel)e.Item.FindControl("alternatePriceContents")).Visible=false; ((Panel)e.Item.FindControl("itemPriceContents")).Visible=false; } else { ((Panel)e.Item.FindControl("alternatePriceContents")).Visible=true; ((Panel)e.Item.FindControl("itemPriceContents")).Visible=true; } } }

Rispondi quotando