Your code seems to work fine for me, which leads me to believe the problem may be how you're using the variable in your partial. Can you post some of that code? I did this in the partial and it worked fine:
Your code seems to work fine for me, which leads me to believe the problem may be how you're using the variable in your partial. Can you post some of that code? I did this in the partial and it worked fine:
<h1>@ViewData["Ort"]</h1>
If I had to guess, you may be expecting a string and may need a .ToString().
Passing Umbraco.Field to partial view
Hi,
I have a problem passing the pageName to a partial view. It works fine if I use a static city for OrtName e.g.
but I have no success in passing
Umbraco.Field("pageName")
as OrtName. How could this be done?Hope for help /martin
,
Your code seems to work fine for me, which leads me to believe the problem may be how you're using the variable in your partial. Can you post some of that code? I did this in the partial and it worked fine:
Your code seems to work fine for me, which leads me to believe the problem may be how you're using the variable in your partial. Can you post some of that code? I did this in the partial and it worked fine:
If I had to guess, you may be expecting a string and may need a .ToString().
Hi five Tim!
OrtNamn.ToString()
solved it!Thanks alot!
is working on a reply...