Copied to clipboard

Flag this post as spam?

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


  • C Andreasson 79 posts 207 karma points
    Apr 10, 2014 @ 00:27
    C Andreasson
    0

    RenderPartial

    Hi Probably simple!!! but I can't figure out why I can't get a div id="wrapper" to work together with @Html.RenderPartial. The menu must be on a line but I can not get into the li. Below a simpel exampel:

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Apr 10, 2014 @ 00:52
    Dennis Aaen
    1

    Hi C Andreasson, 

    I just spotted that you got the equals sign of the wrong side of the id.

    You have something like this:

    <div =id"wrapper">


    Try change it to this:

    <div id="wrapper">

    Hope this helps,

    /Dennis

  • C Andreasson 79 posts 207 karma points
    Apr 10, 2014 @ 11:29
    C Andreasson
    0

    Yes! of course itI can see that ... thank you ;-)

    but still it does not work??

  • C Andreasson 79 posts 207 karma points
    Apr 10, 2014 @ 12:37
    C Andreasson
    0

    Does anyone have an idea???

     

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Apr 10, 2014 @ 12:52
    Dennis Aaen
    0

    Hi C Andreasson,

    Is the problem now that the list of liยดs shown vertical rather than horizontal, then try to give your ul a fixed width or a 100% width.

    Maybe you could link to the site or show a screen dump, can be easier to help then,

    Hope this helps,

    /Dennis

  • C Andreasson 79 posts 207 karma points
    Apr 10, 2014 @ 13:15
    C Andreasson
    0

    Ok Thanks it Was not somthing with the ul.

    Now, I have tried to insert coden from my partial view directly into the template and then I receive this error! 

    You can see from my other screen dump that it is somthing with the parital View!

     

  • C Andreasson 79 posts 207 karma points
    Apr 10, 2014 @ 13:17
    C Andreasson
    0

    If i take the div wrapper out - it works for the menu.

    But why can I not use the wrapper?

  • C Andreasson 79 posts 207 karma points
    Apr 10, 2014 @ 17:03
    C Andreasson
    100

    Now I have found a solution. ;-)))

    I added a class="nav" in partial view

Please Sign in or register to post replies

Write your reply to:

Draft