What vb code do I need to switch between 2 master page?
For example, when clicking on a radio button on default.aspx the page selects a different masterpage.
I have tried to experiment but no luck
here is my code, please feel free to change it accordingly
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" %>
<script runat="server">
Protected Sub PageInit(ByVal sender As Object, ByVal e As System.EventArgs)
If RadioButtonList1.SelectedIndex = 1 Then MasterPageFile = "~/MasterPage3.master"
End Sub
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" Cont ...
Go to the complete details ...