Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Smith 98 posts 172 karma points
    Jun 02, 2011 @ 16:12
    Tom Smith
    0

    Cannot find Codebehind - Usercontrol

    Hi there, hope you can help,

    Have installed the package a ok, however, the macro (usercontrol EyeCatch.Umbraco.SyntaxHighligher.ascx) does not output anything,

    On closer inspection in visual studio, the usercontrol doesnt appear to be able to find it's code behind. The dll is present in the bin so not sure what the problem is?

    What should the CodeBehind and Inherits fields be for that usercontrol?

    Many Thanks,

    Tom

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jun 05, 2011 @ 18:52
    Ove Andersen
    0

    Which version of Umbraco are you running?

  • Tom Smith 98 posts 172 karma points
    Jun 06, 2011 @ 10:50
    Tom Smith
    0

    Hi Ove,

    Thanks for getting back; am running 4.7,

    Many Thanks,

    Tom

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jun 29, 2011 @ 09:17
    Ove Andersen
    0

    Hi!

     

    Really sorry I didn't come back to you sooner. Been swamped with work here.

    I have not been able to recreate your issue in my testenvironments. The EyeCatch.Umbraco.SyntaxHighligher.ascx file is not supposed to output anything at the location it is inserted, but it will insert code at the area the ClientDependency control is used in the template.

    Do you have jQuery loaded on your page?

    The correct Inherits is "EyeCatch.Umbraco.SyntaxHighlighter.SyntaxHighlighterUserControl"

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jun 29, 2011 @ 09:24
    Ove Andersen
    0

    Just discovered that the package appends the scripts at the end of the file (after thetag) instead of in the header. It might not be related to your issue, but some browser might have a problem with this. Anyway, it will be fixed in the next release.

    To see if that is your problem, look at the end of the generated source for your page. It should have a few <link> and <script> tags after the </html> tag.

  • Tom Smith 98 posts 172 karma points
    Jun 29, 2011 @ 13:35
    Tom Smith
    0

    Hi Ove, thanks for getting back,

    I have this as the source of the EyeCatch.Umbraco.SyntaxHighligher.ascx file

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EyeCatch.Umbraco.SyntaxHighlighter" Inherits="EyeCatch.Umbraco.SyntaxHighlighter.SyntaxHighlighterUserControl" %>

    And visual studio is saying that it can't find "EyeCatch.Umbraco.SyntaxHighlighter" and nothing is coming out in the source,

    Sorry about all this! Not sure what it could be, 

    Thanks for your help,

    Tom

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jun 29, 2011 @ 13:44
    Ove Andersen
    1

    I dont think the VS error is related to your problem.

    Could you send me the whole source for the generated page and the template?

    My email is ove.a (at) online.no

  • Tom Smith 98 posts 172 karma points
    Jun 30, 2011 @ 11:47
    Tom Smith
    0

    Hi Ove,

    Yes! You're 100% correct, 

    Turns out, http://tweet-it.s3.amazonaws.com/tweet-it.js was killing jQuery on the entire page! Took me ages to spot this!

    All working fine now,

    Thanks for all the help,

    Tom 

     

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jun 30, 2011 @ 13:24
    Ove Andersen
    0

    Glad you got it sorted out. Hope you find the plugin useful! :-)

Please Sign in or register to post replies

Write your reply to:

Draft