简体   繁体   English

当我在MVC中使用定位标记href时出现白屏

[英]white screen appeared when i use anchor tag href in mvc

i have a anchor tag to load a view like below 我有一个锚标签来加载如下所示的视图

<a href="@Url.Action(Convert.ToString(ViewBag.returnUrl), Convert.ToString(ViewBag.returnUrl), new { hello=""},Request.Url.Scheme)" class="bkpbutton">Back</a>

it looks like below when it is rendered, 呈现时如下图所示,

<a href="http://localhost:42711/controller/action" class="bkpbutton ui-link">Back</a>

but some times it is flickering and showing a white screen instead of rendering view of the action method. 但有时它会闪烁并显示白屏,而不是呈现action方法的视图。

The problem is with jquery mobile navigation. 问题是jQuery移动导航。 added rel="external" to anchor tag and it is resolved the issue. 将rel =“ external”添加到了定位标记,此问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM