Tabs in asp.net mvc

Posted by Xulfee on Stack Overflow See other posts from Stack Overflow or by Xulfee
Published on 2010-05-15T11:47:12Z Indexed on 2010/05/15 11:54 UTC
Read the original article Hit count: 440

Filed under:
|
|

I have three tabs on page and one user control. I want to RenderPartial on each tab.

<script type="text/javascript">
    $(document).ready(function() {
        $("#tabs").tabs();               
    });    
</script>


<div id="tabs">
    <ul>
        <li><a href="#tabs-1">Text 1</a></li>
        <li><a href="#tabs-2">Text 2</a></li>
        <li><a href="#tabs-3">Text 3</a></li>
    </ul>
    <div id="tabs-1">
        <% Html.RenderPartial("usercontrol", Model);  %>            
    </div>
    <div id="tabs-2">
        <% Html.RenderPartial("usercontrol", Model);  %>            
    </div>
    <div id="tabs-3">
        <% Html.RenderPartial("usercontrol", Model);  %>            
    </div>
</div>    

how can i get values from different tabs.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about tabs