Where is this “Too Many Characters in String literal” message coming from?

后端 未结 2 1438
灰色年华
灰色年华 2020-12-22 05:13

Good morning all,

I\'m sure this is a gimme, but I have no idea where this issue is coming from.

I have the following lines in a view:



        
2条回答
  •  余生分开走
    2020-12-22 05:39

    While there's nothing wrong with the line you seperated out, this part in the original code does bother me:

    <%= Url.Action('FormParts') %>
    

    You used single quotes for the string in ASP. This marks it as a character literal, and not a string. Replace them with double quotes and you should be fine.

    <%= Url.Action("FormParts") %>
    

提交回复
热议问题