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

Forums / Bugs & Issues / Couple of bugs...

Couple of bugs...

8 posts, 0 answered
  1. Sean
    Sean avatar
    271 posts
    Registered:
    31 May 2006
    17 Feb 2009
    Link to this post
    Hi Guys,

    Cutting my teeth on the new 3.6 version, pretty good so far, I found a couple of small bugs:

    1. Forst is a very unique situation, if you have a Custom Designer created for a usercontrol and on that designer you have a RadEditor, when you try and use the Paste as Plain text option, the paste option is rendered behind the cancel button and thus you can't see it, we tracked this down to the FormDecorator css skin file causing this.
    2. The other is the Spam Protector, I have created a contact form usercontrol and added that to a page and below that added the spam protector.  In the usercontrol are various form controls and validators.  When the button is pressed and postsback we do a Page.Validate and check if the page isvalid and it always returns false and the ValidationSummary reports that "Submission too fast" which I know I am a fast typer but not 3 seconds fast?  I have only tested in Firefox for now so maybe it is a Firefox only problem?  Or is there something else I am not doing right?
    And that is for now.

    Otherwise the new features are great especially the upgrade, I can't wait until there are almost no files to upload :)

    Thanks
    Sean
  2. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    19 Feb 2009
    Link to this post
    Hello Sean,

    Thank you for contacting us.

    We were unable to reproduce the problem using the RadEditor and the spam protector. Could you please assist us to replicate it locally? If you have a live url, we can take a look as well.

    Here is how to use the SpamProtector in your User Control:
     <%@ Register Assembly="Telerik.Cms.Web.UI" 
    Namespace="Telerik.Web.UI.SpamProtection" TagPrefix="sfWeb" %> 
     
    ...  
     <sfWeb:SpamProtector ValidationGroup="valGroupTest" 
    id="spamProtector" runat="server" cssclass="commentsValidator hide" 
    EnableAutoDiscovery="true" EnableHiddenTextBox="true" 
    HiddenTextBoxMsg="Hidden TextBox has some text in it!"   
    HiddenTextBoxLabel="Do not fill this textbox!" 
    EnableMinTimeout="true" 
    MinTimeout="2" MinTimeoutMsg="Submission too fast!" /> 
     <asp:Button ID="submitBtn" runat="server" Text="Submit" 
    ValidationGroup="valGroupTest" 
    CssClass="sf_commentSubmit" onclick="submitBtn_Click" /> 

    Use the MinTimeout property to adjust the interval in seconds.

    Hope this information will help you.

    Kind regards,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Sean
    Sean avatar
    271 posts
    Registered:
    31 May 2006
    19 Feb 2009
    Link to this post
    Hi Parvan,

    Please read both bugs separately they are both completely unrelated bugs.

    The Spam Protector was added to the page through the Sitefinity Page Editor not in Visual Studio, also added to the page was a custom control that has a ValidationSummary as previously explained.  Please let me know if you still can't replicate them.

    Thanks
    Sean
  4. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    23 Feb 2009
    Link to this post
    Hello Sean,

    Thank you for contacting us.

    I tried but I cannot reproduce the problems. I created a simple User Control which has ValidationSummary. Then put a Spam Protector control and tested, MinTimeoutSubmission had worked fine.
    It will be great if you can send me the files with which the problem happens.

    Hope this information will help you.

    Kind regards,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Sean
    Sean avatar
    271 posts
    Registered:
    31 May 2006
    23 Feb 2009
    Link to this post
    Hi Parvan,

    There is a problem with your usercontrol, you have set a ValidationGroup on the button which would then make the Spam Protector and the Validation Summary not part of the same validation group, effectively the button wouldn't fire any validation at all......

    If you still can't replicate then I will try and send you a project.

    Thanks
    Sean
  6. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    24 Feb 2009
    Link to this post
    Hello Sean,

    Thank you for contacting us.

    I was now able to reproduce the problem with the spam protector. It comes when you explicitly invoke Page.Validation() in the code.

    There is a workaround for the problem:
    You actually do not need to invoke this method, because Sitefinity validates the Page. Just remove Page.Validate(), do not invoke spamProtectorID.Validate() in your code. You can only use Page.IsValid to check if the validation is successful.

    Hope this information will help you.

    Regards,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Sean
    Sean avatar
    271 posts
    Registered:
    31 May 2006
    24 Feb 2009
    Link to this post
    Thanks Parvan,

    That is handy to know about the fact that Sitefinity automatically validates a page, maybe one to be added to the documentation :)

    And about the 1st item I talked about, were you able to do that, create a controldesigner with a radEditor on it and try using the paste as plain text option?

    Thanks
    Sean
  8. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    24 Feb 2009
    Link to this post
    Hello Sean,

    I am still having hard times in  reproducing the problem with the RadEditor. I attached the sample I used.

    1. Copy the files from the zipped App_Code folder to ~[your site]/App_Code folder.
    2. Copy the files from the zipped UserControls folder to the ~[your site]/Sitefinity/UserControls.

    Try it in your site.

    Regards,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
8 posts, 0 answered