【解決方法】トップ コンテンツでインデックス ビューが開かない

[ad_1]

@using VSR.Models

@model enquiry


@{
    ViewData["Title"] = "Home Page";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="container">
    <!-- About Start -->
    <div class="container-fluid py-5 wow fadeInUp" data-wow-delay="0.1s">
        <div class="container py-5">
            <div class="row g-5">
                <div class="col-lg-7">
                    <div class="section-title position-relative pb-3 mb-5">
                        @*<h5 class="fw-bold text-primary text-uppercase">About Us</h5>*@
                        <h1 class="mb-0">Ten Years of Best Experience in IT Solution</h1>
                    </div>
                    <p class="mb-4">
                        VSR Digital Technologies offers comprehensive IT services and solutions to both corporate and
                        private clients. It provides services including web design, web development, e-commerce,
                        software, mobile app development, gateway solutions, email marketing, Whatsapp marketing,
                        and graphic & logo design.<br />
                        And additionally offers services for digital marketing, including content writing, pay-per-click
                        advertising, social media marketing, and social media optimization. It aimed to adopt adaptable
                        international business processes to build exponential value for our clients through creativity
                        and reasonable pricing.

                        <a asp-controller="VSR" asp-action="About">Click Here..</a>
                    </p>
                    <div class="row g-0 mb-3">
                        <div class="col-sm-6 wow zoomIn" data-wow-delay="0.2s">
                            <h5 class="mb-3">class="fa fa-check text-primary me-3" data-wow-delay="0.4s" style="width: 60px; height: 60px" href="quote.html" src="~/img/vsr-about.jpg" start="" size="" cols="10" rows="3" alt=""></a>
                                <a class="btn btn-lg btn-primary btn-lg-square rounded" href="#">^__i class="fab fa-linkedin-in fw-normal"></a>
                            </div>
                        </div>
                        <div class="text-center py-4">
                            <h4 class="text-primary">Pravin Kumar</h4>
                            <p class="text-uppercase m-0" style="text-align: center !important; font-weight:bold;">Administrator</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Team End -->
    <!-- Blog Start -->
    <div class="container-fluid py-5 wow fadeInUp" data-wow-delay="0.1s">
        <div class="container py-5">
            <div class="section-title text-center position-relative pb-3 mb-5 mx-auto" style="max-width: 600px;">
                <h5 class="fw-bold text-primary text-uppercase">Latest Blog</h5>
                <h1 class="mb-0">Read The Latest Articles from Our Blog Post</h1>
            </div>
            <div class="row g-5">
                @foreach (tblBlog category in ViewBag.bindblog)
                {
                    <div class="col-lg-4 wow slideInUp" data-wow-delay="0.3s">
                        <div class="blog-item bg-light rounded overflow-hidden">
                            <div class="blog-img position-relative overflow-hidden">
                                <a href="@Url.Action("BlogDetails", "VSR", new { id=@category.id,Tag = @category.Tag})">
                                    <img class="img-fluid" src="~/img/Blog/@category.Feature_Image" alt="">
                                    <a class="position-absolute top-0 start-0 bg-primary text-white rounded-end mt-5 py-2 px-4" href="#">@category.Cat_NAME</a>
                                </a>
                            </div>
                            <div class="p-4">
                                <div class="d-flex mb-3">
                                    <small class="me-3">^__i class="far fa-user text-primary me-2">@category.username</small>
                                    <small>^__i class="far fa-calendar-alt text-primary me-2">@category.create_date</small>
                                </div>
                                <a href="@Url.Action("BlogDetails", "VSR", new { id=@category.id,Tag = @category.Tag })">
                                    <h4 class="mb-3">@category.Subject</h4>
                                    <p>@Html.Raw(@category.Shortnote)</p>
                                </a>
                            </div>
                        </div>
                    </div>
                }

            </div>
        </div>
    </div>
    <!-- Blog Start -->
    <!-- Vendor Start -->
    <!-- <div class="container-fluid py-5 wow fadeInUp" data-wow-delay="0.1s">
        <div class="container py-5 mb-5">
            <div class="bg-white">
                <div class="owl-carousel vendor-carousel">
                    <img src="img/vendor-1.jpg" alt="">
                    <img src="img/vendor-2.jpg" alt="">
                    <img src="img/vendor-3.jpg" alt="">
                    <img src="img/vendor-4.jpg" alt="">
                    <img src="img/vendor-5.jpg" alt="">
                    <img src="img/vendor-6.jpg" alt="">
                    <img src="img/vendor-7.jpg" alt="">
                    <img src="img/vendor-8.jpg" alt="">
                    <img src="img/vendor-9.jpg" alt="">
                </div>
            </div>
        </div>
    </div>-->
    <!-- Vendor End -->

    </div>

私が試したこと:

<!DOCTYPE html>
<html lang="en">
<head>


    <meta charset="utf-8">
    <title>VSR Digital Technologies</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta content="VSR Digital Technologies" name="keywords">
    <meta content="VSR Digital Technologies offers comprehensive IT services and solutions to both corporate and private clients." name="description">
    <link rel="canonical" href="http://vsrdigitaltechnologies.com/" />
    @*<meta property="og:title" content="How to Become an SEO Expert (8 Steps)" />
        <meta property="og:description" content="Get from SEO newbie to SEO pro in 8 simple steps." />
        <meta property="og:image" content="http://vsrdigitaltechnologies.com/" />*@
    <!-- Favicon -->
    <link href="img/favicon.html" rel="icon">
    <!-- Google Web Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Rubik:wght@400;500;600;700&display=swap" rel="stylesheet">


    <!-- Icon Font Stylesheet -->
    <link href="css/all.min.css" rel="stylesheet">
    <link href="css/bootstrap-icons.css" rel="stylesheet">

    <!-- Libraries Stylesheet -->
    <link href="~/lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
    <link href="~/lib/animate/animate.min.css" rel="stylesheet">

    <!-- Customized Bootstrap Stylesheet -->
    <link href="~/css/bootstrap.min.css" rel="stylesheet">

    <!-- Template Stylesheet -->
    <link href="~/css/style.css" rel="stylesheet">
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-HV41C3L9VB"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());

        gtag('config', 'G-HV41C3L9VB');
    </script>

</head>
<body>

    <!-- Topbar Start -->
    <div class="container-fluid bg-dark px-5 d-none d-lg-block">
        <div class="row gx-0">
            <div class="col-lg-8 text-center text-lg-start mb-2 mb-lg-0">
                <div class="d-inline-flex align-items-center" style="height: 45px;">
                    <small class="me-3 text-light">class="fa fa-map-marker-alt me-2" style="color: rgba(255, 255, 255, 1)" start="" src="~/img/vsr_logo.png" alt="VSR Digital Technologies" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" id="navbarCollapse" media="" data-bs-ride="carousel" data-bs-slide="prev" data-bs-dismiss="modal" data-wow-delay="0.1s"></a>*@
                                <a class="btn btn-primary btn-square me-2" href="https://www.linkedin.com/company/88404175/admin/">^__i class="fab fa-linkedin-in fw-normal"></a>
                                <a class="btn btn-primary btn-square" href="https://www.instagram.com/vsrdigitaltechnolog/">^__i class="fab fa-instagram fw-normal"></a>
                            </div>
                        </div>
                        <div class="col-lg-4 col-md-12 pt-0 pt-lg-5 mb-5">
                            <div class="section-title section-title-sm position-relative pb-3 mb-4">
                                <h3 class="text-light mb-0">Services</h3>
                            </div>
                            <div class="link-animated d-flex flex-column justify-content-start">
                                @Html.ActionLink("Web Designing", "Views", new { controller = "VSR", Tag = "WebDesigning" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Web Development", "Views", new { controller = "VSR", Tag = "WebDevelopment" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("E-commerce Development", "Views", new { controller = "VSR", Tag = "E-commerceDevelopment" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Software Development", "Views", new { controller = "VSR", Tag = "SoftwareDevelopment" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Mobile App Development", "Views", new { controller = "VSR", Tag = "MobileAppDevelopment" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Gateway Solution", "Views", new { controller = "VSR", Tag = "GatewaySolution" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("E-mail Marketing", "Views", new { controller = "VSR", Tag = "E-mailMarketing" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Whatsapp Marketing", "Views", new { controller = "VSR", Tag = "WhatsappMarketing" }, new { @class = "text-light mb-2" })

                            </div>
                        </div>
                        <div class="col-lg-4 col-md-12 pt-0 pt-lg-5 mb-5">
                            <div class="section-title section-title-sm position-relative pb-3 mb-4">
                                <h3 class="text-light mb-0">Digital Marketing</h3>
                            </div>
                            <div class="link-animated d-flex flex-column justify-content-start">
                                @Html.ActionLink("Search Engine Optimization", "Views", new { controller = "VSR", Tag = "SearchEngineOptimization" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Social Media Marketing", "Views", new { controller = "VSR", Tag = "SocialMediaMarketing" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Social Media Optimization", "Views", new { controller = "VSR", Tag = "SocialMediaOptimization" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Pay Per Click", "Views", new { controller = "VSR", Tag = "PayPerClick" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Content Writing", "Views", new { controller = "VSR", Tag = "ContentWriting" }, new { @class = "text-light mb-2" })
                                @Html.ActionLink("Contact", "Contact", new { controller = "VSR" }, new { @class = "text-light" })
                                @Html.ActionLink("Blog", "Blog", new { controller = "VSR" }, new { @class = "text-light mb-2" })
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="container-fluid text-white" style="background: #044ebd;">
        <div class="container text-center">
            <div class="row justify-content-end">
                <div class="col-lg-8 col-md-6">
                    <div class="d-flex align-items-center justify-content-center" style="height: 75px;">
                        <p class="mb-0">
                            © <a class="text-white border-bottom" href="http://vsrdigitaltechnologies.com/">
                                VSR Digital Technologies 2022
                            </a>. All Rights Reserved.
                            @*Designed by <a class="text-white border-bottom" href="#">Rupesh Kumar Yadav</a>*@
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="whats_app_img">
        <a href="https://api.whatsapp.com/send?phone=917503869822">
            <img alt="whatsapp_chat" src="~/img/whatsapp-new.png" width="80% !important;">
        </a>
    </div>@*End of whatsapp code*@
    <!-- Footer End -->
    @RenderSection("Scripts", required: false)
    <a href="#" class="btn btn-lg btn-primary btn-lg-square rounded back-to-top">^__i class="bi bi-arrow-up-short"></a>
    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="~/js/site.js" asp-append-version="true"></script>
    <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

    <!-- JavaScript Libraries -->
    <script src="~/js/jquery-3.4.1.min.js"></script>
    <script src="~/js/bootstrap.bundle.min.js"></script>
    <script src="~/lib/wow/wow.min.js"></script>
    <script src="~/lib/easing/easing.min.js"></script>
    <script src="~/lib/waypoints/waypoints.min.js"></script>
    <script src="~/lib/counterup/counterup.min.js"></script>
    <script src="~/lib/owlcarousel/owl.carousel.min.js"></script>
    <!-- Template Javascript -->
    <script src="js/main.js"></script>

    <script type="text/javascript">
        function openSuccessModal(strmessage) {
var mfDiv = document.getElementById("MyModalSuccessAlertBody");
        mfDiv.innerHTML = strmessage;
        $('#myModalSuccess').modal('show');
}

        $(document).ready(function () {
            $('#submit').click(function () {
                var email = $("#Email").val().trim();
                var expr = /^([\w-\.]+)@@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
                if ($("#Email").val().trim() == "") {
                    openSuccessModal("Please Enter Email Address.. ");

                }
                else if (!expr.test(email)) {
                    openSuccessModal("Invalid email address.. ");

                }
                else {
                    savesbscriber();
                }
            })

        });
        function savesbscriber() {
            $('#submit').click(function () {
                var url = "/VSR/sbscriber";
                var email = $("#Email").val().trim();
                var item = {
                    emailid: email
                }
                $.post(url, {
                    obj: item
                }, function (data) {

                    openSuccessModal(data);
                    $("#Email").val('');
                });
            })
        }



    </script>

    </body>
</html>



[ad_2]

コメント

タイトルとURLをコピーしました