Copied to clipboard

Flag this post as spam?

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


  • naren 7 posts 27 karma points
    Jul 27, 2011 @ 01:15
    naren
    0

    Adding a custom user control to Umbraco Site

    Hello All,

    I am new to using Umbraco.I am trying to add a new custom user control to a umbraco website. I created the user control and uploaded it to user controls folder, created a macro using the user control and uploaded the dll file to the bin folder but when i  tryto populate it on one of the pages it does not show up. I am trying to insert it using the text editor. It is a basic user control which just has a textbox and a  button. The textbox and the button showup when i insert the macro but as soon as i save the content the macro dissapears or does not render. Can you guys please guide me in doing it the right way?

    Thanks

    Naren

  • Nigel Wilson 945 posts 2077 karma points
    Jul 28, 2011 @ 20:05
    Nigel Wilson
    0

    Hey

    Just a thought - have you tried putting the macro within a template to see if it renders on the page ?

    Appreciate it may not completely solve your problem, but it may help track down what is going wrong.

    Another thought is that you may not have a form tag wrapping your user control. This normally creates a nasty error message on the front end, but I did experience asp form fields disappearing myself last week and it was due to a lack of the form tag.

    Hope this helps.

    Cheers

    Nigel

  • naren 7 posts 27 karma points
    Jul 28, 2011 @ 20:17
    naren
    0

    Thanks a lot for the reply Nigel. That was exactly what happend. I had a form tag but did not have runat server on the tag. Thanks again.

    Naren

  • Nigel Wilson 945 posts 2077 karma points
    Jul 28, 2011 @ 20:52
    Nigel Wilson
    0

    Wicked

    Don't forget to mark topic as solved (and high five if desired - hehe)

    Cheers

    Nigel 

Please Sign in or register to post replies

Write your reply to:

Draft