+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Wiki - WikiAdmin Control - no errors when creating duplicate page names

Wiki - WikiAdmin Control - no errors when creating duplicate page names

2 posts, 0 answered
  1. MNP
    MNP avatar
    79 posts
    Registered:
    23 Apr 2008
    10 Aug 2009
    Link to this post
    When using the Create Wiki option in the WikiAdmin control, if you type in a name for the Wiki that already exists, no error message pops up, it just refreshes the page your on.

    A proper error message shows up in the CMS, just not in the page control.

    -Matt
  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    21 Nov 2016
    11 Aug 2009
    Link to this post
    Hi Matt,

    Thank you for your time.

    The message actually appears as you can see on the screen shot. The problem is that when you create a new wiki page, the browser page gets refreshed and the message is hidden. We will try to fix this behavior for our next release.
    Here is a simple work around you can use :
    1. Open "~\Sitefinity\ControlTemplates\Wiki\WikiAdmin.ascx"
    2. Locate the "<asp:Label ID="pageErrorMessage" ...."
    3. Add an event handler for the "OnPreRender" event like this:
    <asp:Label ID="pageErrorMessage" runat="server" CssClass="validMessage" OnPreRender="WikiPageError"
            </asp:Label> 
    4. At the bottom of the control add the following script block:
    <script runat="server"
    protected void WikiPageError(object sender, EventArgs e) 
        this.createPageContainer.Style.Clear(); 
        this.createPageContainer.Style.Add(HtmlTextWriterStyle.Display, "block"); 
        this.initialContainer.Style.Clear(); 
        this.initialContainer.Style.Add(HtmlTextWriterStyle.Display, "none"); 
        </script> 

    Hope this helps.

    Kind regards,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
2 posts, 0 answered