Questions tagged [asp.net-mvc-3]
ASP.NET MVC 3 is the third major version of Model-View-Controller extension for developing web applications in a .NET framework.
38,571
questions
0
votes
0
answers
10
views
How to implement ASP MVC NetCore 3.1 Websocket on Linux CentOS 7?
How to implement ASP MVC NetCore 3.1 Websocket on Linux CentOS 7?
Below is my httpd.conf, it works properly with the web app that's why I commented for the "/ws", but if I uncomment the &...
0
votes
1
answer
20
views
Routing in ASP.NET Core MVC
How can I create a route like this in the url
Localhost:4578//Home/Index/1/2/3/4/5/6
I tried making a custom url using routing in ASP.NET Core 3.1 MVC.
0
votes
1
answer
20
views
mvc route ignored but correct in route debugger
So I have some jquery posting to a url but comes up as 404
createOrder: function () {
return fetch('/paypalcreate', {
method: 'POST',
...
-1
votes
1
answer
48
views
Copy references to class library ASP.NET
I created a new class library in my project, and moved my Models folder to that. Now I need to get all the references like EntityFramework, DataAnnotations etc to my new class library.
Is there an ...
0
votes
1
answer
38
views
Decorator @property on ASP net core like in django
The thing is that like in Django which you can add model properties without changing the model class using the @property decorator.
I'm trying to achieve same with aspnetcore
I mean I want to add some ...
0
votes
0
answers
51
views
.NET Core 3.1 Writing file to network drive
I am trying to get user to upload a document from the web interface and have it stored on the network share *\dfsms\shared\MyProject* , it also saves the entry in a SQL table (path, filetype, content ...
0
votes
0
answers
73
views
How can I get data from a stored procedure that contains a Cursor with another Cursor inside it
How can I get data from a stored procedure that contains a cursor with another cursor inside it in ASP.NET ?
When I try this code, I get the following error:
Unsupported Oracle data type RSET ...
0
votes
3
answers
40
views
.NET Core Database The Connection String property has not been initialized
I'm trying to build a .NET 6 Core MVC application that shows a list of user records from the database.
But I'm getting the "The Connection String property has not been initialized" error ...
0
votes
1
answer
18
views
Unable to resolve service for type 'BookEvent.Project.UserDomain.UoW.ICommentUnitOfWork' while attempting to activate 'CommentAppService'.)
Hi I am Getting this error BookEvent.Project.UserDomain.AppServices.ICommentAppService Lifetime: Transient ImplementationType: BookEvent.Project.UserDomain.AppServices.CommentAppService': Unable to ...
0
votes
1
answer
24
views
Add Comment Section in View DetailPage
I am working on Bookevent application I want to add comment section on eventdetail page where I am already using EventViewModel to display information of event detail and I also what to add comment ...
0
votes
1
answer
41
views
Using string list as Chart.js label
I need to create a chart with two lists.
List<string> islemYapanOperatorler = new List<string>();
List<int> interventionCounter = new List<int>();
foreach (var item ...
0
votes
2
answers
22
views
FormValidation in 2 submit buttons
I have 2 submit buttons 'update and 'exit', how to determine if the 'exit' was clicked and if it's clicked then disable the FormValidation?
please help
thanks
FD
0
votes
1
answer
84
views
Why js, css, lib under wwwroot folder didn't load?
I made a simple ASP MVC (Net Core 3.1) , I leave it as standard, and deploy it under a subfolder of the Apache (/var/www/html/myapps/test/v1`)
I started the kestrel without any errors, I access the ...
0
votes
1
answer
73
views
ASP.NET MVC 3 Authentication cookies not working on iFrame
We are distributing an ASP.NET MVC 3.0 application (C# and .NET 4.0), and some customers had an iframe over it for some customizations, but now it has stopped working. I thought that it was related ...
0
votes
0
answers
40
views
How to assign a variable to a model validation Error Message
******* THIS IS MY ACTUAL MODEL ********
[Required(ErrorMessage = "Please enter Login Name")]
public string Login_Name { get; set; }
******** I WANT TO ACHIVE LIKE *********
public static ...
0
votes
0
answers
25
views
Why cannot autocomplete = "nope" not be used more than 3x in a Html.BeginForm?
I'm having an issue where if I have more than 2 of these @autocomplete = "nope" added the autofill still works in the chrome browser. If I just have two of them it still works. Does anyone ...
1
vote
1
answer
24
views
JQuery: How to select a sub-collection and send to an MVC action
I have a C# MVC web form with a fairly complex hierarchy of data. I need to select a portion of that data, a sub-collection of objects, and send it to an Action where I can manipulate the collection ...
1
vote
1
answer
26
views
Partial View data is not display in it
I am trying to display countrywise employee details using partial view... It is basically called the Partial view but did not display data in it.
Here is my INDEX PAGE CODE
<select class="...
0
votes
1
answer
59
views
Unable to embed PDF into the ASP.NET MVC view
I have an ASP.NET MVC application that returns a PDF stream. I am trying to embed that stream into a view. I have this action in a controller
[AuthorizeResultVisible]
public ActionResult GetPDFStream(...
1
vote
0
answers
34
views
How to get particular row data when click on that particular row button using ASP .NET Core MVC 3
I have two Controllers and their views. The first controller is the applicant controller, In this applicant controller, I have the "add applicant" form. This form link is given to the Second ...
-1
votes
1
answer
77
views
Memory Over Flow if I Use a lot of session
Is it Possible for Server Memory to Overflow if I use too many Sessions in Asp.net Core?
For example, what happens if I have an e-commerce web application and I Use session for store user shopping ...
0
votes
1
answer
46
views
How to create a password protection prompt when a user clicks a button
I have an HTML code that generates the below UI at (the bottom image). My goal is to create a pop-up password protection prompt when the Download Mapping and Upload Mapping buttons are clicked. ...
0
votes
0
answers
79
views
I have this error that "the type or namespace does not exist" after i moved Data, Migrations and Models in separate projects
Error Code
I am doing an ASP.NET course on udemy and I followed the steps but In the video, he uses "using Microsoft.AspNetCore.Builder; to fix the error but in my case, it doesn't work, it says ...
1
vote
1
answer
144
views
InvalidOperationException: The partial view was not found. MVC3.1
Admin/Dashboard.cshtml:
<partial name="Partials/_Dash.cshtml" />
I'm trying to create a partial view _Dash.cshtml menu for the dashboard panel. However, I'm getting the following ...
1
vote
2
answers
425
views
Check data exist in cache or not
In below function I want to cache a data and store into cache memory, from the service I am getting data .
I dont know how to check whether data is exist in cache or not , if suppose data is exist in ...
0
votes
0
answers
45
views
Could not load file or assembly file antlr.runtime.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
I am trying to publish the application while publishing the app I am getting below error.
I have removed temp files from system but still getting same error.
Could not load file or assembly 'file:\...
0
votes
0
answers
65
views
JsonException: A possible object cycle was detected
I'm trying to serialize all menu items and display the data with JS, in _Layout.cshtml.
It's MVC .Net 3.1 application. I'm getting JsonException: a possible object cycle was detected.
@inject ...
1
vote
1
answer
82
views
ASP.NET MVC Model validation not working on one of the controller constructor
I have model validation for user register,login and update. However the model validation only works on login and register. The update function does not respond either
The model
namespace DDemo.Models
{...
-1
votes
1
answer
103
views
returning string along with List data in Json as output
I have a controller method accepting two parameters. This method is used to retrieve a particular row of data corresponding to the ID which is passed via parameter. I have to send the another ...
-1
votes
1
answer
41
views
how to get the username value from url in asp.net
i want get the username from URL i attach the pic when button click URL is change i want to get username value in variable. Kindly help me
<table class="table table-bordered table-striped"...
0
votes
1
answer
81
views
Linq "where" condition with nullable object property result in "invoke non static method requires a target"
I've tried to find a similar question but I haven't found exactly what I want.
I have this issue: about the following code I am not able to find a way to manage that if devTab is null then his ...
0
votes
0
answers
89
views
How to insert data into database table from frontend in ASP.NET MVC project?
Instead of hardcode values, i want to retrieve values entered by user in view (.cshtml file) and send to database.
I am new to MVC, trying to send view data thru controller to database. I have written ...
0
votes
0
answers
16
views
Reg: Asp.net site not able to login
I have ASP.net site login with username and password having OTP set on some number, can i get that number so that able to login to site.
thanks,
1
vote
1
answer
334
views
How to bind HTML select element using either entity framework or MVC project?
My current project is MVC based. I am stuck at trying to populate a select element from my SQL Server database table. Controller is receiving database data in a DataTable object. This data needs to be ...
1
vote
0
answers
66
views
How to add Configuration of Google Analytics / Firebase in MVC Application
I am quite new to Google Analytics/Firebase. I am trying to configure Google Analytics/Firebase to my MVC Application. I have used Firebase Analytics Official Docs but I stuck at step 1. So what have ...
1
vote
2
answers
105
views
login with microsoft api in asp net framework (webforms)
I've searched a lot but unfortionalitly I didn't find the correct answer for my case.
I need to add a button in my webform page to use it to login with microsoft account and after login I get a ...
0
votes
1
answer
444
views
What is difference between setting up routing in asp.net core mvc project with app.UseMvc() or app.UseEndpoints?
I know that when migrating from asp.net 2.2 to 3 app.UseMvc() line in startup.cs file's configure method is replaced by app.UseRouting(); app.UseAuthorization(); app.UseEndpoints();.
Can anyone ...
1
vote
1
answer
56
views
ASP.NET MVC Query with both CASE statement and SUM function
I've found some solutions for this problem, but i don't know why it is not working...
I am using ASP.NET MVC
My database has 2 tables: HealthRegister & Member.
Each HealthRegister has one Member ...
-1
votes
2
answers
81
views
how do i list information from a form on the next page
I'm trying to create a form where a user can input their information. They click submit and on the next page, it list their information. I created to two pages. One view page (Book.cshtml) the ...
-1
votes
1
answer
2k
views
ASP.Net Core "This localhost page can’t be found" HTTP ERROR 404
When I want to run my project with .Net Core MVC architecture with Visual Studio 2019 program on my Mac, I get the error "This localhost page can't be found". I am sharing Startup.cs and ...
0
votes
0
answers
25
views
Authorized specific Roles when false then couldnt redirect issue
I develop .NET CORE 3.0 Web Application. The Application is has a multilayer as a project in a single solution. Login page in a UI layer. But this controller code in another layer, this controller has ...
0
votes
1
answer
90
views
Trying to convert linq Query to IQueryable
I have a LINQ query from three related data tables that I need to display in a view page in MVC application.
There are one-to-many relationships between
AllFacility and Address
and AllFacility and ...
0
votes
0
answers
36
views
Once checkbox is checked textbox is manatory
Ihis is the code of check box in view:
@Html.SimpleCheckBox("twoFactorAuthentication",Model.users.twoFactorAuthentication)
This is the condition on code side:
if((string.IsNullOrEmpty(user....
0
votes
2
answers
43
views
Redirecting a controller and action method to its URL
I have a project that I am working on that was done in ASP.NET MVC 5.
They used the default URL structure that comes standard with the framework. For example, the AGM page was constructed like this:
...
0
votes
1
answer
120
views
Update the inserted record in ASP.NET Web API project
In my project I am inserting an employee and as my employee is inserted my save button HTML turns to update and on the back-end I am using the same insert function for updating the employee which I ...
0
votes
1
answer
166
views
trying to upload Image in mvc web api project using jquery ajax only
I am trying to upload Image but upon running my application my Image parameter is passing null, and I don't know why it is not picking up the file I attached
but in my browser console when I check my ...
0
votes
0
answers
73
views
HTTP Error 413.1 - Request Entity Too Large
I am trying to upload a file in an asp.net mvc application. .net framework version = 4.5. I get this error everytime i try to upload the file even though i changed the settings in my web.config file ...
-1
votes
1
answer
68
views
Controller model class option is not showing the class name when using EF
I am new to asp.net mvc so pls bear with me ...
I was following this tutorial Kudvenkat tutorial
and when I am trying to add the Employee class as a model class it is not showing in the model class ...
-2
votes
1
answer
527
views
What is the reason for this error? (.Net 5, C#)
I am coding a dynamic website, everything works but I noticed an error in the terminal.
Error:
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
An unhandled exception has ...
1
vote
1
answer
245
views
how to make CAPTCHA.MVC5 captcha case sensitive in razor Asp.net MVC?
I am using captch.mvc5 nuget package in my ASP.NET MVC project, but how can I
<div class="row form-group">
@Html.Label("...