using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; public partial class veebitykid : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Disain_Click(object sender, EventArgs e) { if (Disain.Text == "Disain") { haldur.DisplayMode = WebPartManager.DesignDisplayMode; Disain.Text = "OK"; } else { haldur.DisplayMode = WebPartManager.BrowseDisplayMode; Disain.Text = "Disain"; } } protected void vaade_SelectedIndexChanged(object sender, EventArgs e) { switch (vaade.SelectedIndex) { case 0: haldur.DisplayMode = WebPartManager.BrowseDisplayMode; break; case 1: haldur.DisplayMode = WebPartManager.DesignDisplayMode; break; case 2: haldur.DisplayMode = WebPartManager.EditDisplayMode; break; case 3: haldur.DisplayMode = WebPartManager.CatalogDisplayMode; break; } } }