Skip to main content

Questions tagged [asp.net-core-mvc]

ASP.NET Core MVC is a lightweight presentation framework for creating dynamic websites with ASP.NET Core. It allows for creating controller based MVC sites, or view model based Razor pages. MVC includes features like routing, model binding and validation, filters, web APIs and the Razor view engine.

asp.net-core-mvc
0 votes
2 answers
35 views

How to replace file-path-based URL in ASP.NET Core

In an ASP.NET Core MVC project, how do I change the URL for Razor pages from the default format like http://localhost:5088/Home/Faq, to a specific URL such as http://localhost:5088/freq_asked ...
litlln's user avatar
  • 1
0 votes
1 answer
61 views

Use Microsoft Graph API to get information about current user in ASP.NET Core MVC app

I want to use Microsoft Graph API in ASP.NET Core MVC app to get information about current user. However, when the Graph Service Client attempts to fetch the user data in the controller (trying to ...
StanSm789's user avatar
0 votes
1 answer
56 views

Text input into List in cshtml

How can I turn a text input separated by comma in html into a list of a model that I created and add the values into a sql-table Models public class Person { [Key] public string PersonId { get;...
Trung Đặng Đức's user avatar
1 vote
1 answer
34 views

Is the ConfigureApplicationCookie(...) designed to allow us to configure an existing cookie by default in the default scheme (Cookies)?

I was implementing the remember me option in a login form in an asp.net core MVC project, so I ran into the topic of saving a token in a cookie and that a cookie must exist in a scheme. As I ...
Hossam Zaki's user avatar
0 votes
0 answers
27 views

How to add identity in ASP.NET Core using database-first approach

I am building the project in which I created the database tables in SQL Server and then I scaffolded the database, and the DbContext is created after scaffolding. Now I want to add identity tables ...
Abdullah Khan's user avatar
0 votes
0 answers
27 views

Unable to Submit Partical View form to Controller

I am trying to submit a form to my MVC controller. The form is in a partial view and when I hit submit it returns with a 500 error at the path for the action and controller: "https://localhost:...
NerdyDriod's user avatar
0 votes
1 answer
30 views

How to post data from a form back to database via a Razor page

In my asp.net core client, I have a view Razor page (index.cshtml) that displays data. When scaffolding the class links were generated (Edit, Delete, ) I am now trying to wire the “Edit” link When ...
user2835586's user avatar
1 vote
1 answer
77 views

How to view log information in Azure Web App

I have developed an ASP.NET Core 6 MVC web app. During development I use loggers at controllers or services like this: public Result MyService() { _logger.LogInfomation("MyService!"); ...
Nguyen Quoc Bao's user avatar
1 vote
1 answer
50 views

Is it possible to use ProtectedLocalStorage without regular .NET Core?

Seems like an obvious upgrade from regular localstorage, but I've only seen it used with Blazor. I'm using ASP.NET Core 6.0 MVC. Should I just put this in my program.cs? builder.Services.AddScoped<...
andreaskev's user avatar
1 vote
1 answer
48 views

How to get ASP.NET Core MVC Kendo grid to display and bind a dropdown from a partial view

I want to display a dropdown in ASP.NET Core Kendo Grid. In CarsViewModel, I already have the values which needs to be displayed in dropdown so I do not need to do an Ajax call to get dropdown values. ...
HereToLearn_'s user avatar
  • 1,190
0 votes
3 answers
36 views

Change cache-control max-age-48000 to cache-control max-age=48000 in response header

I need to change the hyphen to equal to for my cache-control max-age I am not getting where it is coming from kindly help me with it. I checked iis config as well but nothing found there. Thanks in ...
Sabah Nevrekar's user avatar
0 votes
1 answer
51 views

When I test Connection from Google Tag manager "Test your website" fails but Events are being tracked and can see the data in chart why?

If Events are being tracked that why the Test Connection From GTM fails !!!?? I have set up Google Analytics 4 in My Web Site Created Tags and Events but When I test connection from tag manager it ...
Jeet Raythatha's user avatar
0 votes
1 answer
24 views

How to host ASP.NET Core MVC project at live server

We have a project & access of live server. We copied code from server & made changes. Now the mail point is here how to make it liver. I am very confused hot to make it live. We don't have any ...
Shahnawaz Ahmad's user avatar
0 votes
0 answers
34 views

I'm having problem in stripe payment settings when I want to redirect to payment gateway page. What should I do?

The problem is like this : 'Unrecognized request URL (GET: /v1/checkout/sessions/). If you are trying to list objects, remove the trailing slash. If you are trying to retrieve an object, make sure you ...
Büşra Nur's user avatar
0 votes
1 answer
34 views

Correct way to send AntiForgeryToken through AJAX request

I've been trying to send the AntiForgeryToken through AJAX request in an ASP.NET Core MVC (area based) Razor view; however, I am definitely missing something to send in the POST request. I read ...
KingPin SV's user avatar

15 30 50 per page
1
2 3 4 5
993