skip to Main Content

Javascript – Razor page issue .net 8

This is a Razor page issue. I have simple text box and corresponding search button created in the razor page, say it as index.cshtml. <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Search Button Example</title>     <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>     <script>         $(document).ready(function () {             // Disable the button initially             $('#searchButton').prop('disabled', true);             // Enable button if text box has value             $('#searchInput').on('input', function () {                 const inputValue = $(this).val();                 if (inputValue.trim() !== "") {                     $('#searchButton').prop('disabled', false);                 } else {                     $('#searchButton').prop('disabled', true);…

VIEW QUESTION

Troubleshooting connection issue: ASP.NET Core 8 MVC project containerization with SQL Server Docker container

I have an ASP.NET Core 8 MVC project that I've containerized. Initially, I pulled a SQL Server image from Docker Hub and then modified the default connection as follows: "ConnectionStrings": { "DefaultConnection": "Server=mysql-container,3306;Database=ProductsDB;User Id=root;Password=my-secret-pw;" }, However, upon attempting to access…

VIEW QUESTION

CSS not applied to img in ASP.NET

I'm creating an ASP.NET MVC project and I'm trying to apply some css to an image. Project structure And this is the code: //Index.cshtml.css h1 { color: green } .roundImage { border-radius: 50px; } #profilePhoto { width: 200px; margin: 2rem…

VIEW QUESTION
Back To Top
Search