Microsoft Q&A

ASP.NET MVC

736 questions

A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.

Browse all .NET tags

736 questions with ASP.NET MVC tags

Sort by: Updated
1 answer

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…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
517 questions
asked 2023-03-24T19:53:12.94+00:00
Benjoe 386 Reputation points
commented 2023-03-28T09:24:57.8266667+00:00
Lan Huang-MSFT 11,821 Reputation points Microsoft Vendor
3 answers

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;…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,573 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-24T01:13:31.4566667+00:00
Anjali Agarwal 636 Reputation points
answered 2023-03-28T07:33:12.42+00:00
Karen Payne MVP 30,216 Reputation points
1 answer

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:…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-19T12:09:20.3466667+00:00
cebuhax0r 21 Reputation points
answered 2023-03-28T06:46:46.85+00:00
Yahya SÖNMEZ 0 Reputation points
0 answers

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 =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-27T20:06:49.5466667+00:00
Dean Everhart 906 Reputation points
commented 2023-03-28T06:44:02.39+00:00
Farid Uddin Kiron MSFT 281 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

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"> …

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-26T11:52:22.46+00:00
akhter hussain 2,921 Reputation points
accepted 2023-03-28T03:23:12.6066667+00:00
akhter hussain 2,921 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-27T19:29:05.2133333+00:00
Dean Everhart 906 Reputation points
edited an answer 2023-03-28T03:07:37.48+00:00
Xinran Shen - MSFT 1,281 Reputation points Microsoft Vendor
1 answer

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.

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,791 questions
asked 2023-03-27T13:04:37.4366667+00:00
Ahmed Elnoury 0 Reputation points
answered 2023-03-27T15:21:14.3533333+00:00
Michael Taylor 41,191 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
886 questions
asked 2023-03-23T12:15:43.6866667+00:00
Juan A. Reyes Paulino 0 Reputation points
commented 2023-03-27T14:05:55.5+00:00
Juan A. Reyes Paulino 0 Reputation points
1 answer One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-24T12:18:26.4966667+00:00
Dean Everhart 906 Reputation points
accepted 2023-03-27T10:34:37.78+00:00
Dean Everhart 906 Reputation points
2 answers One of the answers was accepted by the question author.

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"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-24T13:48:07.83+00:00
Dean Everhart 906 Reputation points
accepted 2023-03-27T10:17:52.07+00:00
Dean Everhart 906 Reputation points
1 answer One of the answers was accepted by the question author.

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…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,573 questions
asked 2023-03-24T06:09:58.2666667+00:00
akhter hussain 2,921 Reputation points
accepted 2023-03-27T03:16:02.89+00:00
akhter hussain 2,921 Reputation points
2 answers

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
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2021-06-18T07:45:25.067+00:00
Santosh Umarani 81 Reputation points
commented 2023-03-25T14:23:49.6433333+00:00
Georg Grech 0 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
478 questions
asked 2023-03-16T17:21:00.64+00:00
tjestesjr77 20 Reputation points
edited a comment 2023-03-24T18:05:49.4733333+00:00
AgaveJoe 19,986 Reputation points
0 answers

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…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-02-24T03:33:42.8466667+00:00
babacar diakite 20 Reputation points
commented 2023-03-24T12:51:34.5466667+00:00
Ali Benchaaban 85 Reputation points
2 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-23T15:29:54.3766667+00:00
Dean Everhart 906 Reputation points
accepted 2023-03-24T09:32:01.28+00:00
Dean Everhart 906 Reputation points
2 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-23T16:17:18.0233333+00:00
Dean Everhart 906 Reputation points
accepted 2023-03-23T17:43:31.1+00:00
Dean Everhart 906 Reputation points
2 answers One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,835 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-22T14:33:39.34+00:00
Dean Everhart 906 Reputation points
accepted 2023-03-23T15:18:30.33+00:00
Dean Everhart 906 Reputation points
1 answer One of the answers was accepted by the question author.

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.…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,573 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-21T20:05:04.97+00:00
AppDev 20 Reputation points
commented 2023-03-22T16:50:34.3266667+00:00
AppDev 20 Reputation points
1 answer One of the answers was accepted by the question author.

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?

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,323 questions
asked 2023-03-21T12:55:44.1633333+00:00
Dean Everhart 906 Reputation points
accepted 2023-03-22T13:57:57.68+00:00
Dean Everhart 906 Reputation points
1 answer One of the answers was accepted by the question author.

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 () { …

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,573 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
736 questions
asked 2023-03-22T06:40:25.18+00:00
akhter hussain 2,921 Reputation points
accepted 2023-03-22T09:30:48.5966667+00:00
akhter hussain 2,921 Reputation points