@{
    ViewBag.Title = "Home Page";
}
@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title.</h1>
                <h2>@ViewBag.Message</h2>
            </hgroup>
            <p>
                To learn more about ASP.NET MVC visit
                <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
                The page features <mark>videos, tutorials, and samples</mark> to help you get the most from ASP.NET MVC.
                If you have any questions about ASP.NET MVC visit
                <a href="http://forums.asp.net/1146.aspx/1?MVC" title="ASP.NET MVC Forum">our forums</a>.
            </p>
        </div>
    </section>
}
<input type="text" placeholder="搜索" onkeypress="whichButton(event)" id="searchinput" /><input type="button" value="搜索" title="搜索" onclick="search()"/>
<script>
    window.onload = function () {
        document.getElementById('searchinput').focus();
    };
    function whichButton(event) {
        if (event.keyCode == '13') {
            search();
        }
    };
    function search() {
        var searchword = document.getElementById('searchinput').value;
        if (searchword !== '') {
            window.location = "/Home/Find?q=" + searchword;
        }
    };
</script>