skip to Main Content

How to test production mode – Asp.net

I've added a bundler to my ASP.NET Core project. Now I'm using the <environment> tag helpers to reference the bundled files in production mode. <environment exclude="Development"> <link rel="stylesheet" href="~/css/site-bundle.min.css" /> <link rel="stylesheet" href="~/css/layout-bundle.min.css" /> </environment> <environment include="Development"> <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css"…

VIEW QUESTION

How do i prepopulate textarea with data from database (or any text for that matter) in ASP.Net?

Ok, so basically i have an form which edits data in my database. I have the following inputs: <input value="@title" type="text" asp-for="@Model.ProjName" class="form-control" placeholder="Ticket1" /> <textarea value="@description" type="text" asp-for="@Model.ProjDescription" class="form-control" rows="3"></textarea> I can pre-populate the input just fine, however value…

VIEW QUESTION

Want to get disabled select field value when form is submitted – Asp.net

I have one form and in that one dropdown is in disabled status as per below : <div class="form-group"> <label asp-for="ItemEditModel.ProjectJobId" class="form-label required"></label> <div class="form-group"> <select class="form-control" asp-for="ItemEditModel.ProjectJobId" asp-items="Model.ProjectJobList" disabled></select> </div> <span class="text-danger" asp-validation-for="ItemEditModel.ProjectJobId"></span> </div> Now when we submit form…

VIEW QUESTION
Back To Top
Search