Solved

Problem: Cannot use a leading .. to exit above the top directory.

Posted on 2013-06-12
2
377 Views
Last Modified: 2013-11-24
I have never had this issue before, and this problem seems to have started recently in several places on my site.

I am redoing a masterpage for my site. On the root directory, I have the Masterpage (KryliumMasterPage.Master) and my pages themselves are mostly in subdirectories.

My site is hosted at Discountasp.net, and the page is located at:

http://www.hockey-management.com/default5.aspx

Pressing on the Terms or Privacy hyperlinks at the bottom right throws the error.

Attached is the Terms code:

<%@ Page Language="VB" MasterPageFile="~/KryliumMasterPage.master" Debug=true %>

<script runat=server>

    Dim MyTools As New Krylium.KryliumTools
    Private Shared Ttext(26) As String

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

        ' Check if logged in
        If Session("Leaguenum") < 1 Then
            Response.Redirect("~/index.aspx")
        End If   

        If Not Page.IsPostBack Then
        
            ' Load in appropriate language files
         '   Ttext = MyTools.LoadNewTranslation("terms", "english")

          '  termstitleLabel.Text = Ttext(1)
          '  termsdetailsLabel.Text = Ttext(2)
          '  termsdetailsLabel1.Text = Ttext(3)
          '  termsdetailsLabel2.Text = Ttext(4)
          '  termsdetailsLabel3.Text = Ttext(5)

        End If

    End Sub
</script>

<asp:Content ID="Content2" ContentPlaceHolderID="Headercontent" runat="server">

</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="Mycontent" Runat="Server">
    <asp:Label ID="termstitleLabel" runat="server" class="termstitle" runat="server" />
    <asp:Label ID="termsdetailsLabel" runat="server" />
    <asp:Label ID="termsdetailsLabel1" runat="server" />
    <asp:Label ID="termsdetailsLabel2" runat="server" />
    <asp:Label ID="termsdetailsLabel3" runat="server" />
</asp:Content>

Open in new window


and the Masterpage code:

<%@ Master Language="VB" debug="true"  %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Data" %>
<%@ Register Assembly="NMGAdRotator" Namespace="NMGAdRotator" TagPrefix="cc1" %>

<!doctype html>

<script runat="server">
          
    ' Hockey site
    Public Viewsponsor, Psource, Sqlstring As String
    Dim DetLang, PProcess, Whichstep, Rolename, Defaultpanel, CheckIdentity, Pathtosave, NID, Menustring As String
    Dim Rolenum, Leaguenum, i, j, EC1, topmenuitems, submenuitems, menuwidth, MyUsernum As Integer

    Public MyConn, MyConn1 As New SqlConnection(ConfigurationManager.ConnectionStrings("MyConnectionString").ConnectionString)

    Dim UserPrefsCollection As System.Collections.Specialized.NameValueCollection
    Private Shared Ttext(26) As String
    
    Dim MyTools As New Krylium.KryliumTools
    Dim MySecurity As New Krylium.KryliumSecurity
    Dim MyEncrypt As New Krylium.EncryptDecrypt
    
    Dim cmd, cmd1 As New SqlCommand()
    Dim dt As DataTable = New DataTable()
    Dim ds As DataSet = New DataSet()
    Dim TransReader, MyReader, MyReader1 As SqlDataReader
    
    Dim Firstname, Lastname, Userroles, Foundroles, PageASP, MySQL, Auth1status, Auth2status, Getrolenames, Bnum, Whichgame, LoginStatus As String
    Dim myViewroles As DataView
    
    Sub Page_Load(ByVal Source As Object, ByVal E As EventArgs)
        
    '    If Session("ShowLogin") <> "Yes" Then
    '        mainloginMenu.Visible = False
    '    Else
    '        mainloginMenu.Visible = True
    '    End If

        ' Prepare top menu

        If MyTools.GetLanguage = "english" then

            ' French buttons hidden
            homeButtonfr.Visible = false
            loginButtonfr.Visible = false
            logoffButtonfr.Visible = false
            prefsButtonfr.Visible = false
            helpButtonfr.Visible = false
            langButtonfr.Visible = false

            ' Prepare English buttons
            homeButton.Visible = true
            langButton.Visible = true
            If Session("LoggedIn") = true Then
                prefsButton.Visible = true
                helpButton.Visible = true
                loginButton.Visible = false
                logoffButton.Visible = true
            else
                prefsButton.Visible = false
                helpButton.Visible = false
                loginButton.Visible = true
                logoffButton.Visible = false
            End If
    
        Else
 
            ' English buttons hidden
            homeButton.Visible = false
            loginButton.Visible = false
            logoffButton.Visible = false
            prefsButton.Visible = false
            helpButton.Visible = false
            langButton.Visible = false

            ' Prepare French buttons
            homeButtonfr.Visible = true
            langButtonfr.Visible = true
            If Session("LoggedIn") = true Then
                prefsButtonfr.Visible = true
                helpButtonfr.Visible = true
                loginButtonfr.Visible = false
                logoffButtonfr.Visible = true
            else
                prefsButtonfr.Visible = false
                helpButtonfr.Visible = false
                loginButtonfr.Visible = true
                logoffButtonfr.Visible = false
            End If 
    
        End If  

        kryliumlogo.Attributes.Add("target", "_blank") 
            
        If Not Page.IsPostBack Then
        
            ' Load in appropriate language files
            Ttext = MyTools.LoadNewTranslation("masterpage", MyTools.GetLanguage)

            ' Header
            Sponsor1.AlternateText = TText(99)
            Defaultpanel = TText(99)


            ' Login Menu
            logintitleText.Text = TText(9)
            usernameLabel.Text = TText(10)
            passwordLabel.Text = TText(11)
            nameLabel.Text = TText(12)
            roleLabel.Text = TText(13)
            loginsubmitButton1.Text = TText(14)
            Auth1status = TText(15)
            Auth2status = TText(16) 
            LoginDoOver.Text = Ttext(17)
            Alertmessage1.Text = TText(18)
            Alertmessage2.Text = TText(19)
            forgotpasswordLink.Text = TText(22)
            
            Getrolenames = TText(99)
            Defaultpanel = TText(99)
            mainloginMenu.Visible = False
            
                       
    
            ' Footer menu
            sitecreatedLabel.Text = TText(3)
            aboutsiteLabel.Text = TText(20)
            copyrightLabel.Text = TText(21) & " &copy; 2006 Krylium Enrg." 
            termsHyperlink.Text = TText(1)
            termsHyperlink.NavigateUrl = "~/Styles/Terms.aspx"
            privacyHyperLink.Text = TText(2)
            privacyHyperLink.NavigateUrl = "~/Styles/Privacy.aspx"            
            feedbackHyperLink.Text = TText(4)
            feedbackHyperLink.NavigateUrl = "Mailto:support@krylium.com?Subject=" & TText(20) & " " & Request.ServerVariables("SERVER_NAME")
            
            If MyTools.GetLanguage = "english" then
                FrenchWeather.Visible = False
                EnglishWeather.Visible = True
                NMGAdRotator1.AdvertisementFile="~/ads-en.xml" 
            else
                FrenchWeather.Visible = True
                EnglishWeather.Visible = False
                NMGAdRotator1.AdvertisementFile="~/ads-fr.xml"
            End if

            Dim metaDesc As New HtmlMeta() 
            metaDesc.Name = "description"
            
            If Session("leaguetype") = "" then
                If InStr( UCase(Request.ServerVariables("SERVER_NAME")),  UCase("hockey-management.com") ) > 0 Then
                    Session("leaguetype") = "hockey"
                   else
                    Session("leaguetype") = "soccer"
                End If
            End If                
    
            If Session("leaguetype") = "hockey" then  
                Sponsor1.ImageUrl = TText(6)
                ' Change the title 
                Page.Header.Title = "Welcome to Hockey-Management.com / Bienvenue à Hockey-Management.com"
                ' Create Meta Content 
                metaDesc.Content = "Francais suivera. Web site allowing coaches, administrators, referees and others to manage and automate amateur hockey schedules, statistics, communications, and player availability / Site d'hockey amateur gratuit, qui permet la gestion automisée des statistiques, des cédules et des présences pour les entraîneurs, arbitres, administrateurs et autres"
            else
                Sponsor1.ImageUrl = TText(7)
                Page.Header.Title = "Welcome to Soccer-Management.ca / Bienvenue à Soccer-Management.ca"
                ' Create Meta Content 
                metaDesc.Content = "Francais suivera. Web site allowing coaches, administrators, referees and others to manage and automate amateur soccer schedules, statistics, communications, and player availability / Site de soccer amateur, qui permet la gestion automisée des statistiques, des cédules et des présences pour les entraîneurs, arbitres, administrateurs et autres"
            End If

            Loadmenu

        End If
            
        ' Setup login options and status         
        Playername.Text = Session("Shortname")

        LoadLoginPanel()

    End Sub

    Sub leaguelogoClick(sender As Object, e As ImageClickEventArgs)
        Response.redirect("~/Portal/intro.aspx")
    End Sub

    Sub LoadMenu       
        
        Menustring ="" 

        cmd.Connection = MyConn
        cmd.Connection.Open()
        
        ' Count the number of main menu items
        cmd.CommandText = "Select count(M.ID) from menuitem M, roles U WHERE (M.ParentItemID = 'Menuroot') and (U.ChannelID = '" & Session("Leaguenum") & "') and (U.RoleID = '" & Session("Rolenum") & "') and (CHARINDEX(M.PermissionID, U.PermissionIDs) > 0)"
        topmenuitems = cmd.ExecuteScalar()
        
        ' Load the top menus
        If MyTools.GetLanguage = "english" Then
            cmd.CommandText = "Select M.ID, M.EnglishCaption as Menucaption, M.width from menuitem M, roles U WHERE (M.ParentItemID = 'Menuroot') and (U.ChannelID = '" & Session("Leaguenum") & "') and (U.RoleID = '" & Session("Rolenum") & "') and (CHARINDEX(M.PermissionID, U.PermissionIDs) > 0) ORDER BY M.SortOrder"
        Else
            cmd.CommandText = "Select M.ID, M.FrenchCaption as Menucaption, M.width from menuitem m, roles U WHERE (M.ParentItemID = 'Menuroot') and (U.ChannelID = '" & Session("Leaguenum") & "') and (U.RoleID = '" & Session("Rolenum") & "') and (CHARINDEX(M.PermissionID, U.PermissionIDs) > 0) ORDER BY M.SortOrder"
        End If

        MyReader = cmd.ExecuteReader() 
        i = 0

        While MyReader.Read()
            i = i + 1
            NID = MyReader("ID")
            menuwidth = menuwidth + MyReader("width") + 2
            cmd1.Connection = MyConn1
            cmd1.Connection.Open()

            If i = topmenuitems then
                Menustring = Menustring & "<li class='last'><a href='#'>" & MyReader("MenuCaption") & "</a><div class='menu_dropdown_block'><ul class='menu_submenu_block'>"
            else       
                Menustring = Menustring & "<li><a href='#'>" & MyReader("MenuCaption") & "</a><div class='menu_dropdown_block'><ul class='menu_submenu_block'>"
            End If

            ' Count the number of sub menu items
            cmd1.CommandText = "Select count(M.ID) from menuitem M, roles U WHERE (M.ParentItemID = '" & NID & "') and (U.ChannelID = '" & Session("Leaguenum") & "') and (U.RoleID = '" & Session("Rolenum") & "') and (CHARINDEX(M.PermissionID, U.PermissionIDS) > 0)"
            submenuitems = cmd1.ExecuteScalar()
            
            ' Load the sub menus        
            If MyTools.GetLanguage = "english" Then
                cmd1.CommandText = "Select M.EnglishCaption as ChildCaption, M.URL as MenuUrl from menuitem M, roles U WHERE (M.ParentItemID = '" & NID & "') and (U.ChannelID = '" & Session("Leaguenum") & "') and (U.RoleID = '" & Session("Rolenum") & "') and (CHARINDEX(M.PermissionID, U.PermissionIDS) > 0) ORDER BY M.ParentItemID, M.SortOrder"
            Else
                cmd1.CommandText = "Select M.FrenchCaption as ChildCaption, M.URL as MenuUrl from menuitem M, roles U WHERE (M.ParentItemID = '" & NID & "') and (U.ChannelID = '" & Session("Leaguenum") & "') and (U.RoleID = '" & Session("Rolenum") & "') and (CHARINDEX(M.PermissionID, U.PermissionIDs) > 0) ORDER BY M.ParentItemID, M.SortOrder"
            End If

            MyReader1 = cmd1.ExecuteReader() 
            j = 0

            While MyReader1.Read()
                j = j + 1
                  
                If j = submenuitems then
                    Menustring = Menustring & "<li><a href='" & MyReader1.GetString(1) & "'>" & MyReader1.GetString(0) & "</a></li></ul></div></li>"
                else       
                    Menustring = Menustring & "<li><a href='" & MyReader1.GetString(1) & "'>" & MyReader1.GetString(0) & "</a></li>"
                End If

            End While

            MyReader1.Close()
            MyConn1.Close()
        
        End While

        MyReader.Close()
        MyConn.Close()

        showmenu.text = "<div class='menu_container black_glass'><ul>" & Menustring & "</ul></div><!-- /menu -->" 

    End Sub

    Sub LoadLoginPanel()
        
        RoleStatus.Visible = False
        LoginScreen.Visible = False
        LoginProblems.Visible = False
        Authstatus.Text = Auth2status
        Foundroles = Session("Foundroles")

        If Session("Rolenum") <= 11 Then
            LoginStatus = "NotLoggedIn"
           LoginScreen.Visible = True
           Authstatus.Text = Auth1status
            Session("Rolenum") = 11
        Else
            LoginStatus = "LoggedIn"
           RoleStatus.Visible = True
            Authstatus.Text = Auth2status
        End If
                                  
    End Sub
    
    
    Sub LoginProc(sender As Object, e As System.EventArgs)
        
        ' Login by pushing the LOGIN button
        LoadPermissions(usernameTextbox.Text, passwordTextbox.Text)

    End Sub
    
    Sub LoginProc1(ByVal Source As Object, ByVal E As EventArgs)
   
        ' Login by pushing ENTER
        LoadPermissions(usernameTextbox.Text, passwordTextbox.Text)

    End Sub
    
    Sub LoadPermissions(ByVal Username As String, ByVal Password As String)
       
        Dim LoginResult As String
        
        LoginResult = MySecurity.LoginNow(Username, Password)
        
        If LoginResult <> "" Then
            LoginError(LoginResult)
        Else
            ' Load all the permission info into Session variables
            MySecurity.LoadVariables1(Session("Usernum"))

            If MyTools.GetLanguage = "english" then
                loginButton.Visible = false                
                logoffButton.Visible = true                   
            else
                loginButtonfr.Visible = false                
                logoffButtonfr.Visible = true                   
            End if

            ' Get data to fill dropdown for locations
            MySQL = "Select r.rolename, r.rolenum from roles r, contacts c where charindex(ltrim(rtrim(str(r.rolenum))),c.userroles)>0 and c.usernum = "  & Session("usernum") & " and c.leaguenum="  & Session("leaguenum") & " and c.leaguenum = r.leaguenum"
            Dim objCmd As New SqlDataAdapter(MySQL, MyConn)
            objCmd.Fill(ds, "myroles")
            myViewroles = ds.Tables("myroles").DefaultView
            Roles1.DataSource = myViewroles
            Roles1.DataBind()                
            
             ' Display the proper role
            For i = 0 To Roles1.Items.Count - 1
                If Roles1.Items(i).Value = Session("Rolenum") Then
                    Roles1.SelectedIndex = i
                End If
            Next

            ' Load the person's name

            RoleStatus.Visible = true
            LoginScreen.Visible = False
            LoginProblems.Visible = False

            Playername.Text = Session("Shortname")

            ' Redirect to next pages
         '    Response.Redirect(MySecurity.GetHomePage(Session("Rolenum")))
        End If
        
        
    End Sub

    Sub LoginError(ByVal LoginProcess As String)
        
        RoleStatus.Visible = False
        LoginScreen.Visible = False
        LoginProblems.Visible = True
        
        If LoginProcess = "NoUserPass" Then
            Alertmessage1.Visible = True
            Alertmessage2.Visible = False
        End If

        If LoginProcess = "WrongUserPass" Then
            Alertmessage1.Visible = False
            Alertmessage2.Visible = True
        End If

        usernameTextbox.Text = ""
        passwordTextbox.Text = ""

    End Sub

    Sub LoginTryAgain(sender As Object, e As System.EventArgs)

        LoginProblems.Visible = False
        LoginScreen.Visible = True

    End Sub

    Sub LoginAsAdmin(ByVal sender As Object, ByVal e As System.EventArgs)

        Session("Rolenum") = Roles1.SelectedItem.Value
        Session("Rolename") = Roles1.SelectedItem.Text
        RoleStatus.Visible = True
        
        Response.Redirect(MySecurity.GetHomePage(Session("Rolenum")))

    End Sub

    Sub Topmenuhandler(sender As Object, e As CommandEventArgs) 

         Select e.CommandName

            Case "home"
            ' Home button
            Response.Redirect(MySecurity.GetHomePage(Session("Rolenum")))

            Case "login"

                ' Person clicked on login button
                If MyTools.GetLanguage = "english" then
                    loginButton.Visible = false                
                    logoffButton.Visible = true                   
                else
                    loginButtonfr.Visible = false                
                    logoffButtonfr.Visible = true                   
                End if
                mainloginMenu.Visible = true

            Case "logoff"
                ' Person clicked on logoff button
                Session.Abandon()
                Response.Redirect("~/")
          
            Case "prefs"
            ' Prefs menu
            Response.Redirect("~/Personalization/preferences.aspx")

            Case "help"
            ' Help menu
            Response.Redirect("~/help/index.htm")
          
            Case "lang"
            ' Lang menu
            If Session("lang") = "french" Then
                Response.Cookies("lang").Value = "english"
                Session("lang") = "english"
            Else
                Response.Cookies("lang").Value = "french"
                Session("lang") = "french"
            End If

            Response.Cookies("lang").Expires = DateTime.Now.AddDays(365)	
            Response.Redirect(Request.ServerVariables("URL"))
            
      End Select

    End Sub
   
</script>


<html  lang="en">

<head runat="server">
    <link href="Styles/KryliumStyles.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="Styles/css3menu.css" />
    <style type="text/css"> #maxmin { max-width: 900px; min-width: 650px; margin: 0 auto; border: none; padding: 0; } </style>
    <meta charset="utf-8">
    <meta content="IE=edge,chrome=1" />
    <meta name="keywords" content="hockey, soccer, gestion, manage, management, gerer, league, ligue, baton, stick, skate, patin, amateur, division, conference, nhl, lnh, game, match, jeu, roster, coach, entraineur, entraîneur, referee, arbitre, schedule , cedule, cédule, formation, team, equipe, équipe, statistics, statistiques, joueurs, players, gardiens, goaltenders, but, score, goal, conter, rinks, patinoires, fields, terrains, canada, portal, portail ">
    <asp:ContentPlaceHolder id="HeaderContent" runat="server">
    
    </asp:ContentPlaceHolder>
</head>
<body>

    <form id="form1" runat="server">
    
    <ajaxToolkit:ToolkitScriptManager runat="server" ID="ScriptManager1"  EnableScriptGlobalization="true" EnableScriptLocalization="true" />

        <div class="mainwrapper">
            <div class="mainheader">
                <div class="mainlogo">
                    <asp:Image ID="Sponsor1" runat="server" />
                </div>
                <div class="mainbanner">
                    <cc1:NMGAdRotator ID="NMGAdRotator1" runat="server" Height="60" Width="468"  />
                    <script type="text/javascript" src="~/flashfix.js"></script>
                </div>
            </div>
            <div class="mainmenuarea" >  
                <div id="navlist">
                    <asp:Button id="homeButton" class="homeButton" OnCommand="Topmenuhandler" CommandName="home" runat="server"  />
                    <asp:Button id="loginButton" class="loginButton" OnCommand="Topmenuhandler" CommandName="login" runat="server"  />
                    <asp:Button id="logoffButton" class="logoffButton" OnCommand="Topmenuhandler" CommandName="logoff" runat="server"  />
                    <asp:Button id="prefsButton" class="prefsButton" OnCommand="Topmenuhandler" CommandName="prefs" runat="server"  />
                    <asp:Button id="helpButton" class="helpButton" OnCommand="Topmenuhandler" CommandName="help" runat="server"  />
                    <asp:Button id="langButton" class="langButton" OnCommand="Topmenuhandler" CommandName="lang" runat="server"  />
                    <asp:Button id="homeButtonfr" class="homeButtonfr" OnCommand="Topmenuhandler" CommandName="home" runat="server"  />
                    <asp:Button id="loginButtonfr" class="loginButtonfr" OnCommand="Topmenuhandler" CommandName="login" runat="server"  />
                    <asp:Button id="logoffButtonfr" class="logoffButtonfr" OnCommand="Topmenuhandler" CommandName="logoff" runat="server"  />
                    <asp:Button id="prefsButtonfr" class="prefsButtonfr" OnCommand="Topmenuhandler" CommandName="prefs" runat="server"  />
                    <asp:Button id="helpButtonfr" class="helpButtonfr" OnCommand="Topmenuhandler" CommandName="help" runat="server"  />
                    <asp:Button id="langButtonfr" class="langButtonfr" OnCommand="Topmenuhandler" CommandName="lang" runat="server"  />
                </div>            
                <div class="mainbottommenu">
                    <asp:Label id="showmenu" runat="server" />
                </div>
            </div>
            <table class="mainarea">
                <tr>
                    <td class="mainleftsidebar">
                        <asp:Panel id="mainkryliumlogo" runat="server">
                            <asp:HyperLink ID="Hyperlink1" runat="server" NavigateUrl="http://www.krylium.com" Target="-new" />
                        </asp:Panel>

                        <asp:Panel id="mainloginmenu" runat="server">   
                                                     
                            <div class="logintitle">
                                <asp:Label ID="logintitleText" runat="server" />
                            </div>
                            <div class="loginmenu">  
                                <asp:Panel ID="LoginScreen" class="loginbox" runat="server">
                                    <table class="logintext">
                                        <tr>
                                            <td class="loginlabels"><asp:Label ID="usernameLabel" runat="server" /></td>
                                            <td class="loginentry"><asp:TextBox ID="usernameTextbox" runat="server" Width="44" /></td>
                                        </tr>
                                        <tr>
                                            <td class="loginlabels"><asp:Label ID="passwordLabel" runat="server" /></td>
                                            <td class="loginentry"><asp:TextBox ID="passwordTextbox" runat="server" OnTextChanged="LoginProc1" Width="44" TextMode="Password" /></td>
                                        </tr>
                                    </table>
                                    <div class="loginsubmit">
                                        <p class="loginbuttons"><asp:Button runat="server" id="loginsubmitButton1" OnClick="LoginProc" class="formbutton" /></p>
                                        <p class="loginbuttons"><asp:Hyperlink id="forgotpasswordLink" NavigateUrl="~/Security/passwordrecovery.aspx" Font-Size="X-Small" runat="server" /></p>
                                    </div>
                                </asp:Panel>

                                <asp:Panel ID="RoleStatus" runat="server">
                                    <table class="logintable">
                                        <tr>
                                            <td colspan="2" class="rolestatustop">
                                                <asp:Label ID="Authstatus" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="rolelabels">
                                                <asp:Label ID="nameLabel" runat="server" />
                                            </td>
                                            <td class="rolestatus">
                                                <asp:Label ID="Playername" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="rolelabels">
                                                <asp:Label ID="roleLabel" runat="server" />
                                            </td>
                                            <td class="rolestatus">
                                                <asp:DropDownList ID="Roles1" Font-Size="8" runat="server" Width="80px" DataTextField="rolename"
                                                    DataValueField="rolenum" OnSelectedIndexChanged="LoginAsAdmin" AutoPostBack="true">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <asp:Panel ID="LoginProblems" runat="server">
                                    <table class="logintable">
                                        <tr>
                                            <td style="font-size: 11px; font-family: Verdana; text-align: center; height: 80px">
                                                <p style="margin-left: 5px; margin-right: 5px">
                                                    <asp:Label ID="Alertmessage1" runat="server" />
                                                    <asp:Label ID="Alertmessage2" runat="server" />
                                                </p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <p class="loginbuttons"><asp:Button runat="server" id="LoginDoOver" OnClick="LoginTryAgain" class="formbutton" /></p>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </div>
                        </asp:Panel>

                        <asp:Panel ID="FrenchWeather" runat="server" class="weather">
                            <iframe marginheight="0" marginwidth="0" name="wxButtonFrame" id="Iframe1" height="240" src="http://btn.meteomedia.ca/weatherbuttons/template6.php?placeCode=CAQC0363&category0=Cities&containerWidth=120&btnNo=&backgroundColor=blue&multipleCity=0&citySearch=0&celsiusF=C" align="top" frameborder="0" width="120" scrolling="no" allowTransparency="true"></iframe></p>
                        </asp:Panel>
                        <asp:Panel ID="EnglishWeather" runat="server" class="weather">
                            <iframe marginheight="0" marginwidth="0" name="wxButtonFrame" id="wxButtonFrame" height="266" src="http://btn.weather.ca/weatherbuttons/template6.php?placeCode=CAQC0363&category0=Cities&containerWidth=120&btnNo=&backgroundColor=blue&multipleCity=0&citySearch=0&celsiusF=C" align="top" frameborder="0" width="120" scrolling="no" allowTransparency="true"></iframe></p>
                        </asp:Panel>
                    </td>
                    <td class="maincontentarea">
                        <asp:ContentPlaceHolder ID="Mycontent" runat="server">
                        </asp:ContentPlaceHolder>
                    </td>
                </tr>
            </table>

            <div class="mainfooterarea">
                <table style="width: 100%">
                    <tr>
                        <td class="footertext left">
                            <asp:Label ID="sitecreatedLabel" runat="server" />
                        </td>
                        <td rowspan="2" class="footertext center">
                            <asp:Label ID="copyrightLabel" runat="server" />
                        </td>
                        <td class="footertext right">
                            <asp:Label ID="aboutsiteLabel" runat="server" />
                        </td>
                    </tr>
                    <tr>           
                        <td><asp:HyperLink ID="kryliumlogo" runat="server" ImageUrl="~/Images/kryliumlogo.jpg" NavigateUrl="http://www.krylium.com" cssclass="footerimage" Target="_blank" /></td>
                        <td>
                            <ul class="footerlist">
                                <li><asp:HyperLink ID="termsHyperlink" runat="server" cssClass="footerlink"  NavigateUrl="Terms.aspx" /></li>
                                <li><asp:HyperLink ID="privacyHyperLink" runat="server" cssClass="footerlink" NavigateUrl="Privacy.aspx" /></li>
                                <li><asp:HyperLink ID="feedbackHyperLink" cssClass="footerlink" runat="server" /></li>
                            </ul>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>

Open in new window


The problem with this !#!#^%? error is also I have no clue exactly what line in what page is causing the problem.... I am not sure whether .NET is loading the page and then getting the error, or if it is getting the error when trying to navigate to the page.

Help !

Thanks, Peter
0
Comment
Question by:pbissegger
  • 2
2 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
Comment Utility
Separate issue:  You need to add the "Headercontent" placeholder to your Privacy page.
0
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
I'm wondering if DiscountAsp.net has something mis-configured on their side. Your Terms and Privacy pages are showing up as being in the "Styles" subdirectory--that seems off. Can you try using absolute URLs to your non-master pages? So on your default5.aspx page instead of referring to your terms page like Response.Redirect("~/Terms.aspx") try Response.Redirect("http://www.hockey-management.com/Terms.aspx") (adjust subdirectories as required). If that works, I'd contact DiscountAsp and mention the issue.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now