Vote count:
0
I'm using bootstrap and asp.net. I have a toggle-data to toggle what is show on the page. I would like to create links on other pages which would go to this page and automatically show a specified view. Currently, my link just brings me to the page but D! is still being shown, instead of D2.
View:
<h2>
SOO Sample</h2>
<hr />
<div class="row">
<div class="span3">
<ul class="nav nav-pills nav-stacked">
<li class="active"><a href="#D1" data-toggle="tab">Active</a></li>
<li><a href="#D2" data-toggle="tab">Want active when I get to page.</a></li>
</div>
<div class="span9">
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane fade in active" id="D1">
<p>showing</p>
</div>
<div class="tab-pane fade" id="D2">
<p> show me </p>
</div>
</div>
</div>
</div>
This is what I found that I thought should work.
<%: Html.ActionLink("No Click me instead", "action", "Controller", null, null, "D2", null, null)%>
The url that it links to is the same as the link that I see when I hover over D2 so the creation of the url is working correctly, it's just not playijng nice with the css, any ideas?
The link that it creates: http://localhost:numbers/dir/action#D2
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire