Skip to main content

All Questions

0 votes
1 answer
180 views

Asp.net core 2.0 mvc application get client ip address with load balancer option

I am unable to get client IP address using .net core 2.0 application. I used the below code in startup.cs file. I used the below code in homecontriller.cs file. I am getting remoteIpAddress is 1.0....
Harry's user avatar
  • 1
1 vote
1 answer
378 views

Call script from Server side in asp.net mvc core 3.0

I'm trying to open bootstrap modal from server side in asp.net mvc core 3.0 but unable open getting error ViewBag.RegisterStartupScript(this, this.GetType(), "$('#modalRegisterForm').modal('show')", ...
Hasanshali's user avatar
0 votes
1 answer
3k views

Post data with files using ASP.NET Core MVC to api (ASP.NET Core Web API)

I need to post data with files but I face this problem - all data is null. It works when I use postman: My post function in ASP.NET Core Web API: public async Task<ActionResult<Category&...
Mena Samer's user avatar
1 vote
1 answer
592 views

How to implement Entity atribute value model (EAV) using EF Core and ASP.NET Core?

Let's say I have one entity USER and added some fix properties during the application development. Then after the application deployment if some user wants to add more custom field based on text-field,...
userKG's user avatar
  • 89
0 votes
3 answers
164 views

Why are my single select lists converting to multi select lists on model binding?

I'm trying to bind multiple single select lists to one list of strings in my view model I have the property: public List<string> Items {get; set;} and in my view I have 3 select lists with ...
Aidanas Naugžemis's user avatar
6 votes
4 answers
6k views

.net core , how to handle route with extra leading slash

I need to handle an incoming request which is of the form: //ohif/study/1.1/series Note the exta slash at the front My controller signature is: [Route("ohif/study/{studyUid}/series")] [HttpGet] ...
shelbypereira's user avatar
2 votes
2 answers
824 views

Loading multiple viewcomponents in an ASP.net core 2.2 cshtml

I'm new to Asp.Net core but i have worked with Asp.net MVC 5.I have a problem with loading multiple view components inside a view.(using Asp.net core 2.2) I have page which loads a viewcomponent ...
Hossein Gholizadeh's user avatar
1 vote
1 answer
448 views

PagedList pager doesn't increment page number or routes to the specified controller

I'm having problems with X.PagedList package. I'm using.net core mvc 2.2 for the project. Whatever I do the PagedListPager doesn't seem to work. It doesn't increment the page number and can't change ...
Alper Alpdoğan's user avatar
0 votes
1 answer
640 views

Deciding to use Authorization or not on a per-request basis in Asp.net Core

I'm developing an ASP.net core MVC 2.2 app and at the moment I'm using the classic [Authorize] and [AllowAnonymous] attributes on my controller actions to decide whether a certain action can be ...
Master_T's user avatar
  • 7,661
0 votes
0 answers
3k views

Error: The remote server returned an error: (500) Invalid WSDL access, no SOAP request expected C#

I am consuming SOAP web service in my .net core application. I am getting below error in c# code "The remote server returned an error: (500) Invalid WSDL access, no SOAP request expected." ...
yogesh's user avatar
  • 45
0 votes
0 answers
98 views

ASP.NET Core API with localized strings

We have an ASP.NET Core API. There are no views as again this is a simple API. We have strings in resource files(by culture) and we want each user to get the correct resource (in each API request we ...
AJ222's user avatar
  • 1,134
0 votes
1 answer
520 views

Passing Controller Action output as SupplyData in UseSpaPrerendering of .Net Core

In .Net Core application, I have below code in Configure method of Startup.cs file. app.UseSpa(spa => { spa.Options.SourcePath = "ClientApp"; spa....
Naveed Ahmed's user avatar
  • 10.3k
1 vote
1 answer
43 views

How to resolve my problem with upload file [closed]

How can I upload my Image in asp.net core 2 without saved to database and after will show it in other View? Help, please.
Serhii Chyzhyk's user avatar
0 votes
1 answer
375 views

Different projects with controllers and views

I should write a big software for a company. This company has many different departments, but each department needs the same base-functions and also some specific department features. Therefore i ...
Lukas Hieronimus Adler's user avatar
8 votes
1 answer
2k views

Cache-Control warning getting logged when add ResponseCache attribute

I have ASP.NET Core 2.2 application. I have set no-store=true on all controllers for the cases when the user clicks the browser's back button [ResponseCache(NoStore = true)] public class MyController:...
LP13's user avatar
  • 33.1k

15 30 50 per page
1
2
3 4 5
34