using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; /// /// Summary description for Yldleht /// public class Yldleht : System.Web.UI.Page { public Yldleht() { // // TODO: Add constructor logic here // } protected void Page_PreInit(object sender, EventArgs e) { string[] kujundused ={ "kujundus1", "kujundus2" }; Random r = new Random(); string juhukujundus = kujundused[r.Next(2)]; //Page.Theme = "kujundus2"; Page.Theme = juhukujundus; } }