Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

Learn more about...

AspDotNetStorefront
DotFeed

Tokens won't work on vs. 10

I have in my _layout.cshtml file the following:

<span id="userName">
     @Html.StringResource("UserName")
</span>

And everything it does is to show up "UserName" on screen.

Also, I have this:
<span id="loginText"><a href='<asp:Literal ID="Literal1" Text="<%$ Tokens:SignInOut_Link %>" />'>
     @Html.StringResource("SignInOut_Text")</a>
</span>

And everything it does is to show up "SignInOut_Text" on screen and try to go to <asp:Literal ID="Literal1" Text="<%$ Tokens:SignInOut_Link %> when I click it.

What am I doing wrong?
asked Jan 11 in MultiStore by Yan Kleber (1,245 points)

1 Answer

0 votes
 
Best answer

the login links now use @Html.Action(ActionNames.Index, ControllerNames.UserLinks) to show login link information.

Anything that has a asp: tag will most likely not work with your mvc views. Since MVC doesn't uses controls like this.

answered Jan 11 by mmcgeachy (4,965 points)
selected Jan 21 by Yan Kleber

mmcgeachy, thank you very much!

I totally goofed with it. I was chasing my own tail. Happens that I revisited the original _layout.cshtml file (I kept an untouched copy of it before to start messing around) and then I noticed my big stupidity. And now I confirmed that after to see your response.

My links are now working but for some reason I don't know the system is not retrieving the proper texts for the labels and so. Any clue of what am I missing here?

Screen snapshot is at:

https://onedrive.live.com/?authkey=%21AOzZYYlc_SEeGIs&cid=EB5EFA312A54884F&id=EB5EFA312A54884F%21119&parId=EB5EFA312A54884F%21117&o=OneUp

Thanks!

Have you ran string resource import recently. Given the screen shot it leads me to think there are new strings for version 10 you don't have values for. Which importing the string resource file/s helps take care of that issue. Keeping in mind that a clearing of cache may be needed for the string resource values to fully updated.
...