Cost must be multiple by 5 – Asp.net
I am working small application with basic CRUD operation and I have Product Model. In this model I have something like public class Product { public int Id { get; set; } public string Name { get; set; } public…
I am working small application with basic CRUD operation and I have Product Model. In this model I have something like public class Product { public int Id { get; set; } public string Name { get; set; } public…
I have an existing dotnet core 3.1 web app that builds and deploys to an azure app service. it works fine. I am trying to containerize the app. the build is fine, but when the container runs it gives me…
I have a ViewBag.CategoryList which contains ViewBag.CategoryList = new SelectList(Category.GetCategories()); My View: @Html.LabelFor(model => model.Category, htmlAttributes: new { @class = "control-label col-md-2" }) @Html.DropDownListFor(model => model.Category, new SelectList(ViewBag.CategoryList), "Select Category", htmlAttributes: new {@class = "form-control"}) What I'm getting is <option>System.Web.Mvc.SelectListItem</option>…
I need to send array as query parameter, I do it like this StringBuilder Ids = new StringBuilder(); for (int i = 0; i < array.Count; i++) { Ids.Append(String.Format("&id[{0}]={1}", i, items[i].ID)); } ifrDocuments.Attributes.Add("src", "Download.aspx?arrayCount=" + array.Count + Ids); After this…
I have this query where I want to return results if the search string provided yields data from the 'FirstName' and 'LastName' column of my database. They each work individually as I can get results for Firstname = 'john' and…
We can host the .net core application in local machine on IIS/ngnix. Since Docker container uses underlying OS, where does the container host the application? Where is the code written to instruct the docker container to host on a particular…
I have a rest API that takes longer to populate complete result data (as it iterates the remove directory recursively which is time taking sometimes) during that time the client is keep waiting. once all the data is populated we…
I would like to insert data into TripApplicationUser table - to save that for example that Jake has enrolled for a trip to London. The table is in my SQL Server in Visual Studio. It has 2 columns: TripId and…
I am building a rest API in ASP.NET Core 6.0 I am using several API's for a mashup, in which one of them demands that I set a "meaningful" user-agent. Can someone explain where (in which class or something) in…
I have a .NET microservice running as a docker container that is responsible for sending emails to customers. These emails contains additional banner which is a png file. Should that file be included in my Docker Image during build process?…