Here is the code, if you want me to clean it up - let me know.
ASP.NET page:
Now that's relevant.
<%@ Page Language="VB" EnableSessionState ="true" AutoEventWireup ="true" %>
<script runat="server" >
Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Page.MasterPageFile = Session.Contents("myMaster").Value
End Sub
</script>
<asp:Content ID="TopBorder" ContentPlaceHolderID = "MainContent" runat ="server" >
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:testConnectionString1 %>" ProviderName="<%$ ConnectionStrings:testConnectionString1.ProviderName %>"
SelectCommand="SELECT wp_navigation.link, wp_page_content.page_cont_id, wp_page_content.interface_id, wp_page_content.language, wp_page_content.contentholder, wp_page_content.page_content FROM wp_navigation INNER JOIN wp_page_content ON wp_navigation.interface_id = wp_page_content.interface_id WHERE (wp_navigation.link = @link and wp_page_content.language = @language)">
<SelectParameters>
<asp:SessionParameter DefaultValue="English" Name="language" SessionField="language" Type="String" />
<asp:QueryStringParameter DefaultValue="filename.aspx" Name="link" QueryStringField="pn" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<asp:Label ID="page_contentLabel" runat="server" Text='<%# Bind("page_content") %>' Height="268px" Width="394px"></asp:Label>
</ItemTemplate>
</asp:FormView>
</asp:content>
Master page:
It's long and irrelevant but here it is.
<%@ Master Language="VB" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
' Set Session Variable language equal to English
Session.Timeout = 40
Session.Contents("language") = "English"
Session.Contents("myMaster") = "Home_english.master"
End Sub
</script>
<html>
<head runat ="server">
<title>Mypage </title>
<link href = "StyleSheet.css" rel = "stylesheet" type = "text/css" />
</head>
<body bgcolor="#d4d0c8" topmargin ="0" vlink = "deepskyblue" ><center >
<form runat ="server" id="form1">
<Table ID="Table1" cellpadding ="0" border ="0" cellspacing="0" visible = "false" hidefocus =hidefocus bgcolor="white" width="800" >
<tr bgcolor ="black" >
<td colspan="3" align="right" style="color: white; font-size :medium; font-family: Verdana, Arial, 'Century Gothic'; font-size: 8px;">
<asp:Button ID="FrenchID" runat="server"
ForeColor="Black" Text="French" OnClick="FrenchID_Click"/>| <asp:Button ID="SpanishID" runat="server"
ForeColor="Black" Text="Spanish" OnClick="SpanishID_Click"/></td></tr>
<tr valign = "top" height = "100%">
<td colspan = 2 valign ="top" align ="left" bgcolor ="black" >
<img align ="bottom" ID="Image2" runat="server" alt="[Logo]" src ="~/Images/logo_home_new.jpg" />
</td>
<td valign ="top" align = "left" width ="100%" bgcolor="black" >
<img align = "bottom" id = "Image3" runat = "server" alt="[Top Border]" src ="~/Images/top_border.jpg" /><br />
<table height = "30px" cellpadding ="0" cellspacing="0" width = "100%" >
<tr width = "300" valign ="top" >
<td align = "right" style =" color :White ; font-family: Verdana; font-size: x-small ; font-style: normal ">
<b><a href ="Home.aspx">Home</a> | <a href ="Company.aspx" >Company</a> | <a href ="Product.aspx" >Product</a> | <a href = "News.aspx">Newsroom</a> | <a href ="ContactUs.aspx" >Contact</a></b>
<br/>
<asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="0.8em" PathSeparator=" : ">
<PathSeparatorStyle Font-Bold="True" ForeColor="white" />
<CurrentNodeStyle ForeColor="wheat" />
<NodeStyle Font-Bold="True" ForeColor="skyblue" />
<RootNodeStyle Font-Bold="True" ForeColor="deepskyblue" />
</asp:SiteMapPath></td>
</tr></table>
</td>
<td valign ="top" align = "left" width = "200" height ="100%" >
<table cellspacing ="0" cellpadding ="0" height ="100%" > <tr valign ="top" height ="100%"><td bgcolor="#1E90FF" bordercolor ="#1E90FF" width="200" height ="100%">
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
<asp:Menu ID="Menu2" runat="server" BackColor="#1E90FF" DataSourceID="SiteMapDataSource1"
DynamicHorizontalOffset="2" Font-Bold ="true" Font-Names="Verdana" Font-Size="0.8em" ForeColor="wheat"
StaticSubMenuIndent="10px" StaticDisplayLevels="2">
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#284E98" ForeColor="White" Font-Bold = "true" />
<DynamicMenuStyle BackColor="black" />
<DynamicItemTemplate>
<%# Eval("Text") %>
</DynamicItemTemplate>
<StaticSelectedStyle BackColor="#507CD1" />
<DynamicSelectedStyle BackColor="#507CD1" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="#507CD1" ForeColor="White" Font-Bold ="true" />
</asp:Menu></td><td>
<table cellspacing ="0" bgcolor ="black" cellpadding ="0" width =40 height ="100%"><tr><td> </td></tr></table>
</td> </tr></table>
</td>
<td>
<table cellspacing ="0" height="100%">
<tr>
<td colspan =2><asp:ContentPlaceHolder ID="MainContent" runat="server">
<table height ="100%">
<tr>
<td>
</td>
</tr>
</table>
</asp:ContentPlaceHolder></td>
</tr>
<tr>
<td style="height: 234px"><asp:contentplaceholder id="LeftTopContent" runat="server" >
</asp:contentplaceholder></td>
<td style="height: 234px" ><asp:ContentPlaceHolder ID="RightTopContent" runat="server">
</asp:ContentPlaceHolder></td>
</tr>
<tr>
<td><asp:ContentPlaceHolder ID="LeftBotContent" runat="server">
</asp:ContentPlaceHolder></td>
<td><asp:ContentPlaceHolder ID="RightBotContent" runat="server">
</asp:ContentPlaceHolder></td>
</tr>
</table>
</td>
</tr>
</Table>
</form>
</center></body>
</html>