MVC3 Razor Camtasia 视频嵌入,@param 错误:-(
问候社区!
<object id="myExperienceXXXXXXXX" class="BrightcoveExperience">
<param name="bgcolor" value="#FFFFFF" />
<param name="width" value="448" />
<param name="height" value="251" />
<param name="playerID" value="XXXXXXXXXX" />
<param name="playerKey" value="XXXXXXXXXXX" />
<param name="isVid" value="true" />
<param name="dynamicStreaming" value="true" />
<param name="@videoPlayer" value="XXXXXXXXXXXXX" />
</object>
请注意最后一行,我收到以下错误:
编译器错误消息:CS0103:当前上下文中不存在名称“videoPlayer”
Camtasia 需要此值才能将我的视频嵌入到我的页面中。我确信有一个简单的解决方案,但我需要在 videoPlayer 值之前添加“@”符号。
预先感谢您的任何帮助。
Greetings Community!
<object id="myExperienceXXXXXXXX" class="BrightcoveExperience">
<param name="bgcolor" value="#FFFFFF" />
<param name="width" value="448" />
<param name="height" value="251" />
<param name="playerID" value="XXXXXXXXXX" />
<param name="playerKey" value="XXXXXXXXXXX" />
<param name="isVid" value="true" />
<param name="dynamicStreaming" value="true" />
<param name="@videoPlayer" value="XXXXXXXXXXXXX" />
</object>
Notice the last line , I get the following error:
Compiler Error Message: CS0103: The name 'videoPlayer' does not exist in the current context
This value is Required by Camtasia to embed my video in my page. I'm sure there is a simple solution, but I need the "@" sign before the videoPlayer value.
Thanks in advance for any assistance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
@
是 Razor 中的保留字符,通常后跟服务器端表达式。如果你想按字面输出它,则将其加倍:@
is a reserved character in Razor which should normally be followed by a server side expression. Double it if you want to output it literally:@
符号是 Razor 视图引擎中的保留字符。如果要输出@
符号,可以使用两个@
字符来转义第一个字符。例如:
The
@
symbol is a reserved character in the Razor view engine. If you want to output a@
symbol you can use two@
characters to escape the first.For example:
不适用于上述答案!
它应该是这样的格式:
Not work with the above answers!
It should be the format like this: