Questions tagged [asp.net]
ASP.NET is a Microsoft web application development framework that allows programmers to build dynamic web sites, web applications and web services. It is useful to use this tag in conjunction with the project type tag e.g. [asp.net-mvc], [asp.net-webforms], or [asp.net-web-api]. Do NOT use this tag for questions about ASP.NET Core - use [asp.net-core] instead.
asp.net
374,726
questions
1
vote
1
answer
22
views
How could I use db context in repository for implementing dependency inversion principal in ASP .NET Core MVC
I have created a asp .net core mvc on .Net 8.0,
Here, I created AppDbContext class:
public class AppDbContext : DbContext
{
public AppDbContext(DbContextOptions<AppDbContext> options) : base(...
0
votes
0
answers
21
views
Data is not updating in database [duplicate]
I login to my website and go to profile to update details and after clicking edit button it redirects to register page where registration and update operation happens. but it's not update the details ...
0
votes
0
answers
17
views
Can't add migration in ASP.NET 8.0 with using MySQL
This is the error I get:
The exception 'Option 'sever' not supported.' was thrown while attempting to find 'DbContext' types. For the different patterns supported at design time, see https://go....
0
votes
0
answers
5
views
How to implement a conditional one-to-one relationship with Identity/Entity Framework/ASP.NET Core
I am having trouble determining how to implement the following scenario in an ASP.NET Core Web API using Identity and Entity Framework:
If an AppUser is given the Performer role when it is created, ...
0
votes
0
answers
4
views
AspNetCoreGeneratedDocument.Areas_Admin_Views_Product_Add.ExecuteAsync() in Add.cshtml
enter image description here
enter image description here
Web Errro Page
enter image description here
Hello, even though the information is correct, I am getting a NullReferenceException error.
The ...
0
votes
1
answer
4
views
Image uploader in Ck Editor 4 can't see loaded image
I am using Ck editor to edit my description field. When I click upload a file, its ok but ckeditor doesn't render image on textarea.
This is my config function that I use in _Layout.cshtml
<...
0
votes
0
answers
12
views
Resolving InvalidOperationException when Passing ViewBag Content List to Partial View in ASP.NET MVC
When I call the partial view inside normal view, I'm getting this error;
InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.String', but this ...
0
votes
0
answers
12
views
Automated Elastic Beanstalk deployment of dotnet application fails on both CodePipeline and GitHub Actions, but works manually
I'm trying to set up automated deployment of my .NET Core API application to an existing EB environment. I'm currently deploying manually via the AWS Toolkit (Publish to AWS) extension for Visual ...
0
votes
0
answers
25
views
LinkedIn not displaying correct meta title and meta description for ASP.NET website
I have an ASP.NET website with separate meta title and meta description tags. These tags display the correct title and description on all websites except LinkedIn. Despite following the Open Graph ...
0
votes
0
answers
50
views
API Response issue
i am making a GET API but the route which i defined in API is not triggering i try every thing but it cannot work. look into the below codes files i added in it.
I've set up a GET API endpoint to ...
0
votes
1
answer
24
views
Cannot make preselect value in select2 dropdown
I have select 2 dropdown in my project
Here is how it's added on view (Razor)
<div class="form-group">
<label class="required-label">Tier</label>
...
1
vote
3
answers
53
views
Dependency injection approach for object used only in a single method
I'm migrating an old ASP.NET 4.7.2 MVC application to ASP.NET Core and wish to learn more of the DI approach, since it's already deeply integrated into the Core framework. However, so far I've ...
0
votes
1
answer
19
views
AngularJS $http.put returns 405 when published
I have an ASP.NET project with AngularJS. I am using $http.put to update a certain record in the database and I need the .then to do something later.
I have an IIS server.
When I test the code locally ...
0
votes
0
answers
31
views
Trying to integrate my database in my ASP.NET project
I have a problem, I'm doing a college work and my teacher asked to integrate the database directly on my project. The idea behind this is to export the project and be able to execute the page without ...
0
votes
1
answer
28
views
search is not working, SQL query doesn`t replace GridView data
This is the aspx code
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:Conn %>" SelectCommand="SELECT [...