Click here to Skip to main content
15,867,686 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCommunication between 2 MVC API's on the same server Pin
Fred28345-Mar-19 21:19
Fred28345-Mar-19 21:19 
AnswerRe: Communication between 2 MVC API's on the same server Pin
Afzaal Ahmad Zeeshan6-Mar-19 1:34
professionalAfzaal Ahmad Zeeshan6-Mar-19 1:34 
GeneralRe: Communication between 2 MVC API's on the same server Pin
Fred28346-Mar-19 2:03
Fred28346-Mar-19 2:03 
AnswerRe: Communication between 2 MVC API's on the same server Pin
Nathan Minier6-Mar-19 1:59
professionalNathan Minier6-Mar-19 1:59 
GeneralRe: Communication between 2 MVC API's on the same server Pin
Fred28346-Mar-19 2:20
Fred28346-Mar-19 2:20 
QuestionOpenID, ADSF, custom LoginID Pin
Super Lloyd28-Feb-19 14:52
Super Lloyd28-Feb-19 14:52 
QuestionUsing SelectList for dropdown binding (ASP.NET Core) Pin
Member 1416479527-Feb-19 4:42
Member 1416479527-Feb-19 4:42 
AnswerRe: Using SelectList for dropdown binding (ASP.NET Core) Pin
Richard Deeming27-Feb-19 8:10
mveRichard Deeming27-Feb-19 8:10 
I think part of the problem is that you seem to be using Razor Pages[^], which is subtly different from MVC (either Core or MVC5).

Microsoft have a decent tutorial which covers using drop-down lists in Razor Pages:
Razor Pages with EF Core in ASP.NET Core - Update Related Data - 7 of 8 | Microsoft Docs[^]

Basically, you need to populate the list of cost centres in both the OnGetAsync and OnPostAsync methods.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Using SelectList for dropdown binding (ASP.NET Core) Pin
Member 1416479527-Feb-19 8:20
Member 1416479527-Feb-19 8:20 
QuestionCapture and report JavaScript errors Pin
dataminers25-Feb-19 21:46
dataminers25-Feb-19 21:46 
QuestionASP.Net Core separate API and UI projects Pin
Mycroft Holmes14-Feb-19 13:18
professionalMycroft Holmes14-Feb-19 13:18 
AnswerRe: ASP.Net Core separate API and UI projects Pin
Json Dev23-Feb-19 2:33
Json Dev23-Feb-19 2:33 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Mycroft Holmes23-Feb-19 11:23
professionalMycroft Holmes23-Feb-19 11:23 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Json Dev23-Feb-19 11:55
Json Dev23-Feb-19 11:55 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Mycroft Holmes23-Feb-19 14:55
professionalMycroft Holmes23-Feb-19 14:55 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Json Dev23-Feb-19 16:49
Json Dev23-Feb-19 16:49 
QuestionC# CREATING SIMPLE ORACLE API Pin
sellol12-Feb-19 1:20
sellol12-Feb-19 1:20 
AnswerRe: C# CREATING SIMPLE ORACLE API Pin
Richard MacCutchan12-Feb-19 5:28
mveRichard MacCutchan12-Feb-19 5:28 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
sellol12-Feb-19 5:37
sellol12-Feb-19 5:37 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
Richard MacCutchan12-Feb-19 5:51
mveRichard MacCutchan12-Feb-19 5:51 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
sellol12-Feb-19 6:01
sellol12-Feb-19 6:01 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
Richard MacCutchan12-Feb-19 6:05
mveRichard MacCutchan12-Feb-19 6:05 
AnswerRe: C# CREATING SIMPLE ORACLE API Pin
Mycroft Holmes12-Feb-19 13:52
professionalMycroft Holmes12-Feb-19 13:52 
AnswerRe: C# CREATING SIMPLE ORACLE API Pin
jschell23-Feb-19 10:59
jschell23-Feb-19 10:59 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
sellol23-Feb-19 19:36
sellol23-Feb-19 19:36 

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.