Tell me where I was wrong? You must create two RadioButton on the page with the names of topics (Skins) that are on the site, and a button. When you click on the button, the selected theme is applied. When you go to the login page, items should be displayed based on the selected topic. Subject store in cookie -nabope

` <form id="form1" runat="server"> <fieldset> <legend>Autorization</legend> <div> <asp:Label id="Login" runat="server">Login: </asp:Label> <label>&nbsp;</label><label>&nbsp;</label><label>&nbsp;</label> <label>&nbsp;</label><label>&nbsp;</label><label>&nbsp;</label> <label>&nbsp;</label><label>&nbsp;</label><label>&nbsp;</label><label>&nbsp;</label><label>&nbsp;</label><label>&nbsp;</label><label>&nbsp;</label><label>&nbsp;</label> <label>&nbsp;</label><label>&nbsp;</label> <asp:TextBox ID="text" type="text" runat="server"></asp:TextBox> </div> <div> <asp:Label id="Password" runat="server">Password: </asp:Label> <label>&nbsp;</label> <label>&nbsp;</label><label>&nbsp;</label> <label>&nbsp;</label><label>&nbsp;</label><label>&nbsp;</label> <label>&nbsp;</label><label>&nbsp;</label> <label>&nbsp;</label> <asp:TextBox ID="TextBox1" type="text" runat="server"></asp:TextBox> </div> <div> <asp:Label id="ConfirmPass" runat="server">Confirm password: </asp:Label> <asp:TextBox ID="TextBox2" type="text" runat="server"></asp:TextBox> </div> <div> <asp:radioButton ID="Rb" value="rb" Text="checked skin1" runat="server" onclick="radioButton_CheckedChanged"></asp:radioButton> </div> <div> <asp:radioButton ID="Rb1" value="rb" Text="checked skin2" runat="server" onclick="radioButton_CheckedChanged"></asp:radioButton> </div> <div> <label>&nbsp;</label> <asp:Button type="btn" value="Submit" Text="Submit" class="submit" runat="server"></asp:Button> </div> </fieldset> </form> <asp:TextBox runat="server" ForeColor="White" BackColor="Black" /> <asp:Label runat="server" ForeColor="blue"/> <asp:Button runat="server" ForeColor="White" BackColor="Orange" /> <asp:radioButton runat="server" SkinId="1" /> <asp:TextBox runat="server" ForeColor="Blue" BackColor="Gray" /> <asp:Label runat="server" ForeColor="Black"/> <asp:Button runat="server" ForeColor="Blue" BackColor="Orange" /> <asp:radioButton runat="server" SkinId="2" /> protected void Page_Load(object sender, EventArgs e) { HttpCookie cookie = new HttpCookie("theme2"); cookie["Theme"] = "theme2"; Response.Cookies.Add(cookie); } protected void radioButton_CheckedChanged(object sender, EventArgs e) { if (Rb.Checked) Page.Theme = ("theme1"); else Page.Theme = ("theme2"); }` 
  • Do not tell me why radioButton does not work (it does not switch among themselves) and how to visit them for the form ... - Darkkiss

0