Click here to Skip to main content
15,793,546 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
Richard Deeming25-Feb-22 0:23
mveRichard Deeming25-Feb-22 0:23 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
pkfox25-Feb-22 0:35
professionalpkfox25-Feb-22 0:35 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
Richard Deeming25-Feb-22 0:52
mveRichard Deeming25-Feb-22 0:52 
GeneralRe: ASP.NetCore Freeze the header of html table Pin
pkfox25-Feb-22 3:31
professionalpkfox25-Feb-22 3:31 
Questionselect data from two table of database based on one column of excel data which is uploaded . Pin
Member 1449552213-Feb-22 0:36
Member 1449552213-Feb-22 0:36 
AnswerRe: select data from two table of database based on one column of excel data which is uploaded . Pin
Richard Deeming14-Feb-22 4:46
mveRichard Deeming14-Feb-22 4:46 
AnswerRe: select data from two table of database based on one column of excel data which is uploaded . Pin
RedDk14-Feb-22 8:53
RedDk14-Feb-22 8:53 
QuestionAsp.Net Core. Sending requests with Postman. Pin
Kamil Kluska5-Feb-22 23:47
Kamil Kluska5-Feb-22 23:47 
I write in Postman this URL for Get method: https://localhost:7033/api/restaurant and I get 404 not found result. I don't know where is the problem. For https://localhostlocalhost:7033 it works, so it must be something wrong with [Route("api/restaurant")]

Here is the Controller code:

[Route("api/restaurant")]
public class RestaurantController : ControllerBase
{
private readonly RestaurantDbContext _dbContext;

public RestaurantController(RestaurantDbContext dbContext)
{
_dbContext = dbContext;
}

[HttpGet]
public ActionResult<ienumerable<restaurant>> GetAll()
{
var restaurants = _dbContext.Restaurants.ToList();

return Ok(restaurants);
}
}

and launchSettings file code:

}
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:8196",
"sslPort": 44311
}
},
"profiles": {
"RestaurantApp": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7033;http://localhost:5033",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

modified 6-Feb-22 6:13am.

AnswerRe: Asp.Net Core. Sending requests with Postman. Pin
Richard MacCutchan6-Feb-22 1:28
mveRichard MacCutchan6-Feb-22 1:28 
QuestionWhich one of the following codes has better performance in ASP.NET Core? Pin
Alex Dunlop4-Feb-22 22:05
Alex Dunlop4-Feb-22 22:05 
AnswerRe: Which one of the following codes has better performance in ASP.NET Core? Pin
Afzaal Ahmad Zeeshan5-Feb-22 4:27
professionalAfzaal Ahmad Zeeshan5-Feb-22 4:27 
QuestionWhat to use for a job scheduler for a .net app with plugins for each job Pin
jumbojs29-Jan-22 4:39
jumbojs29-Jan-22 4:39 
AnswerRe: What to use for a job scheduler for a .net app with plugins for each job Pin
Bohdan Stupak4-Feb-22 5:42
professionalBohdan Stupak4-Feb-22 5:42 
QuestionInitial design question on an ASP.NET Core MVC project. Pin
nstk20-Jan-22 10:21
nstk20-Jan-22 10:21 
Questionasp.net Pin
Member 1449552218-Jan-22 1:18
Member 1449552218-Jan-22 1:18 
AnswerRe: asp.net Pin
Richard Deeming18-Jan-22 2:44
mveRichard Deeming18-Jan-22 2:44 
QuestionError NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
Member 1547980726-Dec-21 4:52
Member 1547980726-Dec-21 4:52 
AnswerRe: Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
OriginalGriff26-Dec-21 4:53
mvaOriginalGriff26-Dec-21 4:53 
AnswerRe: Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
Mycroft Holmes26-Dec-21 12:45
professionalMycroft Holmes26-Dec-21 12:45 
GeneralRe: Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 2.2 Pin
Member 1547980726-Dec-21 19:21
Member 1547980726-Dec-21 19:21 
QuestionHttps redirection modifies url path Pin
Member 1547511221-Dec-21 2:10
Member 1547511221-Dec-21 2:10 
AnswerRe: Https redirection modifies url path Pin
Richard Deeming4-Jan-22 1:26
mveRichard Deeming4-Jan-22 1:26 
QuestionHow to fill Foreign Key in a relational database when creating a new row? Pin
Alex Dunlop19-Dec-21 8:12
Alex Dunlop19-Dec-21 8:12 
AnswerRe: How to fill Foreign Key in a relational database when creating a new row? Pin
Alex Dunlop19-Dec-21 9:02
Alex Dunlop19-Dec-21 9:02 
QuestionWhere did i get asp.net project in linux with mysql database.? Pin
Tushar Surve 202115-Dec-21 7:11
Tushar Surve 202115-Dec-21 7:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.