forum

Home / DeveloperSection / Forums / How to display count number of screen in Bootstrap

How to display count number of screen in Bootstrap

Sachin Singh269928-Mar-2016
Hi Everyone,

I have make a tab menu with the help of bootstrap in my asp.net mvc application.
and i want to display a number of screen(Count) of the under home tab.
and display count in a button name then after number of count.

Here, my code:

@{
    ViewBag.Title = "";
    <scriptsrc="~/Scripts/jquery-1.9.1.min.js"></script>
    <linkhref="~/Content/bootstrap.css"rel="stylesheet"/>
    <scriptsrc="~/Scripts/bootstrap.min.js"></script>
}
 
<html>
<body>
    <div>
        <ulclass="nav nav-tabs"role="tablist">
             <lirole="presentation"class="active"><ahref="#home"aria-controls="home"role="tab"data-toggle="tab">Home</a></li>
</ul>
        <divclass="tab-content">
            <divrole="tabpanel"class="tab-pane active"id="home">
                <br/>
                <br/>
                <buttonclass="btn btn-primary"type="button">
                    Total Screens
                </button>
                @foreach (var item in ViewBag.scr)
                {
                    <li>@item</li>
                }
            </div>

Please help me.

Thank you.




Can you answer this question?


Answer

1 Answers

Liked By