MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

footer problem  (Mono Support )

Viewed 12742 time(s), 11 post(s) 1/17/2012 12:12:09 PMby deluxxx
deluxxx

deluxxx

1/17/2012 12:25:34 PM
I have another question why as I remove the PageFooterthis part of the page it stops working?


<ul>
<li><h2><%= PageResources.PageFooter_SiteMembership %></h2></li>
<li><asp:LoginName ID="loginName" runat="server" /></li>
<li><monox:SeoLoginStatus ID="loginStatus" runat="server" /></li>
<asp:LoginView runat="server" ID="loginView">
<AnonymousTemplate>
<li><asp:HyperLink runat="server" ID="lnkRegister" Text="<% $Code:DefaultResources.Login_RegisterInvitation %>" NavigateUrl='<% $Code: MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink("/Membership/Register.aspx") %>'></asp:HyperLink></li>
</AnonymousTemplate>
</asp:LoginView>
<li><asp:HyperLink runat="server" ID="lnkPrivacyPolicy" NavigateUrl='<% $Code: MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink(MonoSoftware.MonoX.RewrittenUrlBuilder.GetContentPageUrl(MonoSoftware.MonoX.RewrittenPaths.ContentPage, "PrivacyPolicy").Url) %>'><%= PageResources.PageFooter_PrivacyPolicy %></asp:HyperLink></li>
<li><asp:HyperLink runat="server" ID="lnkTermsOfUse" NavigateUrl='<% $Code: MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink(MonoSoftware.MonoX.RewrittenUrlBuilder.GetContentPageUrl(MonoSoftware.MonoX.RewrittenPaths.ContentPage, "TermsOfUse").Url) %>'><%= PageResources.PageFooter_TermsOfUse %></asp:HyperLink></li>


</ul>

how change password for admin ?





This content has not been rated yet. 
214 Reputation 27 Total posts
khorvat

khorvat

1/17/2012 7:50:11 PM
Hi,

the controls from your code are used in the code behind of the PageFooter control and therefor you get exception if you remove them. If you want to reuse the MonoX demo PageFooter you can hide the controls by wrapping them into a PlaceHolder. If you want to remove them completely form the system then you need to remove them from the MasterPage.

Let us know if you need anything else.

Regards 
This content has not been rated yet. 
15993 Reputation 2214 Total posts
deluxxx

deluxxx

1/19/2012 4:09:13 PM
a masterpage? how to edit a page in pagefooter.ascx it crashes on me


how to change subtitles: You are logged in as admin

user-icon You are logged in as admin
Log out by Clicking here User profiles

on their own? I can never find it.
This content has not been rated yet. 
214 Reputation 27 Total posts
khorvat

khorvat

1/20/2012 7:47:35 AM
Hi,

all of these strings are compiled inside the localization assemblies. You can change them by using the provided localization solution and localize the resources inside the Visual Studio or by switching the resource provider to DBResourceProvider and do it dynamically with the administration UI.

Related localization article.

You can find the localization VS solution in the following location /MonoX/Samples/Solution/LocalizationSolution/LocalizationSolution.sln.

Let us know if you need anything.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
deluxxx

deluxxx

1/25/2012 5:56:20 AM
a masterpage? how to edit a page in pagefooter.ascx it crashes on me. Which file to I edit my footer does not spoil? I can not find it: / I want delete that :
<ul>

<li><h2><%= PageResources.PageFooter_SiteMembership %></h2></li>

<li><asp:LoginName ID="loginName" runat="server" /></li>

<li><monox:SeoLoginStatus ID="loginStatus" runat="server" /></li>

<asp:LoginView runat="server" ID="loginView">

<AnonymousTemplate>

<li><asp:HyperLink runat="server" ID="lnkRegister" Text="<%
$Code:DefaultResources.Login_RegisterInvitation %>"
NavigateUrl='<% $Code:
MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink("/Membership/Register.aspx")
%>'></asp:HyperLink></li>

</AnonymousTemplate>

</asp:LoginView>

<li><asp:HyperLink runat="server" ID="lnkPrivacyPolicy"
NavigateUrl='<% $Code:
MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink(MonoSoftware.MonoX.RewrittenUrlBuilder.GetContentPageUrl(MonoSoftware.MonoX.RewrittenPaths.ContentPage,
"PrivacyPolicy").Url) %>'><%=
PageResources.PageFooter_PrivacyPolicy
%></asp:HyperLink></li>

<li><asp:HyperLink runat="server" ID="lnkTermsOfUse"
NavigateUrl='<% $Code:
MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink(MonoSoftware.MonoX.RewrittenUrlBuilder.GetContentPageUrl(MonoSoftware.MonoX.RewrittenPaths.ContentPage,
"TermsOfUse").Url) %>'><%= PageResources.PageFooter_TermsOfUse
%></asp:HyperLink></li>





</ul>
This content has not been rated yet. 
214 Reputation 27 Total posts
imarusic

imarusic

1/25/2012 10:24:35 AM
Hi,

As Kristijan wrote, if you want to remove PageFooter.ascx user control from all pages that inherits Default.master master page you need to remove it from Default.master master page.

To do it navigate to Default.master (/MonoX/Masterpages/Default.master) and remove this code snippet:

<MonoX:PageFooter runat="server" ID="ctlFooter"></MonoX:PageFooter>

If you want only to remove the code you posted then the easiest way is to put it under a placeholder, in PageFooter.ascx, and set it's visibility to false. An example:

<asp:PlaceHolder ID="plh" runat="server" Visible="false">
        <ul>
            <li><h2><%= PageResources.PageFooter_SiteMembership %></h2></li>
            <li><asp:LoginName ID="loginName" runat="server" /></li>
            <li><monox:SeoLoginStatus ID="loginStatus" runat="server" /></li>
            <asp:LoginView runat="server" ID="loginView">
                <AnonymousTemplate>
                    <li><asp:HyperLink runat="server" ID="lnkRegister" Text="<% $Code:DefaultResources.Login_RegisterInvitation %>" NavigateUrl='<% $Code: MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink("/Membership/Register.aspx") %>'></asp:HyperLink></li>
                </AnonymousTemplate>
            </asp:LoginView>
            <li><asp:HyperLink runat="server" ID="lnkPrivacyPolicy" NavigateUrl='<% $Code: MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink(MonoSoftware.MonoX.RewrittenUrlBuilder.GetContentPageUrl(MonoSoftware.MonoX.RewrittenPaths.ContentPage, "PrivacyPolicy").Url) %>'><%= PageResources.PageFooter_PrivacyPolicy %></asp:HyperLink></li>
            <li><asp:HyperLink runat="server" ID="lnkTermsOfUse" NavigateUrl='<% $Code: MonoSoftware.MonoX.Utilities.LocalizationUtility.RewriteLink(MonoSoftware.MonoX.RewrittenUrlBuilder.GetContentPageUrl(MonoSoftware.MonoX.RewrittenPaths.ContentPage, "TermsOfUse").Url) %>'><%= PageResources.PageFooter_TermsOfUse %></asp:HyperLink></li>
 
        </ul>
        </asp:PlaceHolder>

Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
deluxxx

deluxxx

2/7/2012 10:20:31 AM
I want to have a footer. But when I delete that part of the code from the footer:

<li><asp:LoginName ID="loginName" runat="server" /></li>
<li><monox:SeoLoginStatus ID="loginStatus" runat="server" /></li>


it crashes me this error:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
[NullReferenceException: Object reference not set to an instance of an object.]
   MonoSoftware.MonoX.MasterPages.PageFooter.OnInit(EventArgs e) +170
   System.Web.UI.Control.InitRecursive(Control namingContainer) +545
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2039
1.<li><asp:LoginName ID="loginName" runat="server" /></li>
2.<li><monox:SeoLoginStatus ID="loginStatus" runat="server" /></li>


Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
[NullReferenceException: Object reference not set to an instance of an object.]
   MonoSoftware.MonoX.MasterPages.PageFooter.OnInit(EventArgs e) +170
   System.Web.UI.Control.InitRecursive(Control namingContainer) +545
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Control.InitRecursive(Control namingContainer) +302
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2039
This content has not been rated yet. 
214 Reputation 27 Total posts
imarusic

imarusic

2/7/2012 12:56:27 PM
Hi,

as we previously mentioned, you cannot delete some user controls from markup because they are, in this case, used in code behind. The easiest way is to put those two controls in a placeholder and set it visibility to false or to set visibility on both controls to false.

<asp:PlaceHolder ID="plh" runat="server" Visible="false">
<li><asp:LoginName ID="loginName" runat="server" /></li>
<li><monox:SeoLoginStatus ID="loginStatus" runat="server" /></li>
</asp:PlaceHolder>


or:
<li><asp:LoginName ID="loginName" runat="server" Visible="false" /></li>
<li><monox:SeoLoginStatus ID="loginStatus" runat="server" Visible="false" /></li>
This content has not been rated yet. 
3016 Reputation 428 Total posts
deluxxx

deluxxx

2/14/2012 8:51:56 AM
ok thanks


I noticed another problem with the footer. When editing the file to be translated, have setthemselves in the language PL and DE paraemtr LoginStatus_LoginText the "A". when I doso for Default or English language continues to be an old inscription. What may be the reason?
This content has not been rated yet. 
214 Reputation 27 Total posts
imarusic

imarusic

2/13/2012 1:33:52 PM
Hi,

Can you please open another topic for your issue?

Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
1 2