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 )

27905 put(a) pogledan, 11 odgovor(a) 17.1.2012. 12:12:09Kreirao(la) deluxxx
deluxxx

deluxxx

17.1.2012. 12:25:34
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 ?





Ovaj sadržaj još nije ocijenjen. 
214 Reputacija 27 Ukupno objava
khorvat

khorvat

17.1.2012. 19:50:11
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 
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
deluxxx

deluxxx

19.1.2012. 16:09:13
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.
Ovaj sadržaj još nije ocijenjen. 
214 Reputacija 27 Ukupno objava
khorvat

khorvat

20.1.2012. 7:47:35
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
deluxxx

deluxxx

25.1.2012. 5:56:20
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>
Ovaj sadržaj još nije ocijenjen. 
214 Reputacija 27 Ukupno objava
imarusic

imarusic

25.1.2012. 10:24:35
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.
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
deluxxx

deluxxx

7.2.2012. 10:20:31
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
Ovaj sadržaj još nije ocijenjen. 
214 Reputacija 27 Ukupno objava
imarusic

imarusic

7.2.2012. 12:56:27
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>
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
deluxxx

deluxxx

14.2.2012. 8:51:56
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?
Ovaj sadržaj još nije ocijenjen. 
214 Reputacija 27 Ukupno objava
imarusic

imarusic

13.2.2012. 13:33:52
Hi,

Can you please open another topic for your issue?

Regards.
Ovaj sadržaj još nije ocijenjen. 
3016 Reputacija 428 Ukupno objava
1 2