Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I got it now, i just had to disable AJAX on menu item</p> <p>so adding 'data-ajax="false"' worked for me. So following is complete _layout</p> <pre><code>&lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;title&gt;@ViewData("Title")&lt;/title&gt; &lt;meta name="viewport" content="width=device-width" /&gt; &lt;link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /&gt; @Styles.Render("~/Content/mobileCss", "~/Content/css") @Scripts.Render("~/bundles/modernizr") @Scripts.Render("~/bundles/jquery", "~/bundles/jquerymobile") @RenderSection("scripts", required:=False) @*--- Menu Toggle script ---*@ &lt;script type="text/javascript"&gt; $('#search-area-switch').live('tap', function (event) { $('#dvMenu').toggle("slow"); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; @*---Master Page---*@ &lt;div data-role="page" data-theme="b"&gt; @*---Header Image---*@ &lt;div data-role="header"&gt; &lt;div&gt; &lt;img src='@Url.Content("~\Content\Images\Banner.jpg")' alt="Header Img" style="max-width:100%;" /&gt; &lt;/div&gt; &lt;/div&gt; @*---Page Heading---*@ &lt;div data-role="header"&gt; &lt;h4 style="text-align: left; margin-left: .1em;"&gt;@ViewData("SearchType").ToString().ToUpper()&lt;/h4&gt; &lt;a id="search-area-switch" href="#" data-icon="arrow-d" class="ui-btn-right"&gt;Menu&lt;/a&gt; &lt;/div&gt; @*---Menu---*@ &lt;div id="dvMenu" style="display:none;" &gt; &lt;ul data-role="listview" data-theme="a" &gt; &lt;li data-role="list-divider"&gt; Select Search Type&lt;/li&gt; @Code Dim menu As New Dictionary(Of String, String)() menu = CType(Session("menu"), Dictionary(Of String, String)) @For Each item As KeyValuePair(Of String, String) In menu @&lt;li&gt; &lt;a href='@item.Value' data-ajax="false" id='@String.Concat(item.Key, "_menuid")' &gt; @item.Key &lt;/a&gt; &lt;/li&gt; Next End Code &lt;/ul&gt; &lt;/div&gt; @*---Content/child view---*@ &lt;div data-role="content" &gt; @RenderBody() &lt;/div&gt; &lt;/body&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload