Content
Exapand glyphicon-plus glyphicon-plus when collapsed on button click
I have a page with bootstrap glyphicon-plus glyphicon-minus in a span with a class. when the page loads the span is collapsed by default and I need to Expand it on a button click programmatically. I am doing $("#btn-search").click(function…


saving png image to the database
I am trying to save a .png image to the database. I have a field in database called sign with type varbinary(max) and I have following in the Model: public partial class EmployeeInfo { public int EmployeeInfoId { get; set; } public byte[]? Sign { get;…


Correlation failed, cookies not found using OpenID in ASP.net core MVC 6
I am getting the below error in my ASP.net core MVC 6 application, my application is using Keycloak and is running in a docker container. We connect to Keycloak using OpenID, but after logging in Keycloak this error occur warn:…


Viewing Embed Link (Thumbnail) that is the content of a property
I would like to be able to access an embed link that is the string content of a property in the same manner that the code below allows me to access a web link that is the string content of a property. <a href=@Html.DisplayFor(modelItem =>…


There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'designid'.
When i am passing data from view to controller then below error is coming There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'designid'. <div class="form-group"> …


Null Warnings Re: Student, Course Create and Edit
Working on the following Contoso University Tutorial... https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/crud?view=aspnetcore-6.0#update-the-edit-page The code runs successfully but has some warnings... Errors: Warning…


Report Wizard missing in VS2022
In VS2022 I downloaded and installed the Microsoft RDLC Report Designer 2022 but I still can't find the report.


Access Control
Good morning, I am working on a .NET Core 6, SQL Server project and I need some idea of how to implement permissions by fields, let me explain: in a form, for example, that has [Name, Surname, Date, Address, Gender] to be able to assign in an access…


Displaying Razor code without executing it.
The code below, using the <pre></pre> tag using <> substitution displays the html code successfully on a view page (see below) BUT... it requires the Razor elements... @RenderBody() @await…


Displaying Image within Project folder
Any idea why an image wouldn't display in core 6? Is there a problem with the line of code below...the way the path is transcribed? Is there a problem using png format in 6? <img src="/Media/Home.png" alt="Home Page"…


Insert Data into Parent and child table using MVC
Below is sql table structure Create table #ItemMasterFile (Codeitem int,Descriptionitem varchar(50)) Create table #Probale (Prdno int,Codeitem int,QTY int,PID int,Orderno int) Create table #tbl_BalPacM (PID int,Orderno int,Date date) Create table…


Displaying progress bar in asp.net mvc
Hi, I have written following controller : public ActionResult ProgressBarDisplay() { int count = 0; // reads the count from database and updates the count double percentage = (count / 9) * 100; return View(percentage); …


ASP.NET Core MVC : complex data model reading related data
I am trying to display a drop-down on my DEVICES create.cshtml view of the names from CONTACT via the lookup table DeviceAssignments, below is an ERD. I am already able to display the drops downs for DeviceCategories and DeviceLocations, but I am not…


How to implement one to many relationship
I'm trying to build a recipe app for my spouse. I'm trying to set it up so she can add new recipes to the database as the app grows. When adding new recipe, she will have three drop-down to pick from to construct her new recipe ingredients. First one…


VS Code displayed on webpage as text rather than picture
If I want to display code...as it appears as code in Visual Studio (e.g. below) but on a web page as text, is there any way of doing that? If I place the code between <p> </p> tags, I get: Element 'html' cannot be nested inside element…


Downloading Core 7 for a x64 bit windows 11 operating system
I've been working with .net core 6. I tend to want to stay with it because I am used to it, but I'm considering upgrading to .core 7, since it is available. Would it be advisable to upgrade to 7 for new projects? The download page seems…


Running or Downloading Contoso University from GitHub
I am trying to download a completed copy of the Contoso University Demo from GitHub. cu_final is probably the copy I want. I open cu_final and I see the familiar .net file structure for a project. I am encouraged. When I hit the <> Code button…


The model item passed into the dictionary is of type 'DSDB_V1.Models.DSDB_STORE_TBL', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[DSDB_V1.Models.DSDB_STORE_TBL]'.
Hi All I am so confused by this thing. One type of list work... a list with a find or where statement creates an error. No really understanding why. This is the mvc below is the source codes... maybe some one can help. What it is that I am trying to do.…
GitHub - referencing repositories in a question
What is the best way to share code through GitHub for the purposes of this Q&A forum? Do I simply include a link to the GitHub repository in the body of the question, or are there other ways?


Each row in html inserting two times in Database
i am inserting row from html to database,then each row from html table inserting into database two times, $('#btnSave').click(function () { var smallbales = new Array(); $("#DataInsert tbody tr").each(function () { …

