Click here to Skip to main content
15,118,713 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCommunication between 2 MVC API's on the same server Pin
Fred28345-Mar-19 22:19
MemberFred28345-Mar-19 22:19 
AnswerRe: Communication between 2 MVC API's on the same server Pin
Afzaal Ahmad Zeeshan6-Mar-19 2:34
mveAfzaal Ahmad Zeeshan6-Mar-19 2:34 
GeneralRe: Communication between 2 MVC API's on the same server Pin
Fred28346-Mar-19 3:03
MemberFred28346-Mar-19 3:03 
AnswerRe: Communication between 2 MVC API's on the same server Pin
Nathan Minier6-Mar-19 2:59
professionalNathan Minier6-Mar-19 2:59 
GeneralRe: Communication between 2 MVC API's on the same server Pin
Fred28346-Mar-19 3:20
MemberFred28346-Mar-19 3:20 
QuestionOpenID, ADSF, custom LoginID Pin
Super Lloyd28-Feb-19 15:52
MemberSuper Lloyd28-Feb-19 15:52 
QuestionUsing SelectList for dropdown binding (ASP.NET Core) Pin
Member 1416479527-Feb-19 5:42
MemberMember 1416479527-Feb-19 5:42 
AnswerRe: Using SelectList for dropdown binding (ASP.NET Core) Pin
Richard Deeming27-Feb-19 9:10
mveRichard Deeming27-Feb-19 9: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 9:20
MemberMember 1416479527-Feb-19 9:20 
QuestionCapture and report JavaScript errors Pin
dataminers25-Feb-19 22:46
Memberdataminers25-Feb-19 22:46 
QuestionASP.Net Core separate API and UI projects Pin
Mycroft Holmes14-Feb-19 14:18
professionalMycroft Holmes14-Feb-19 14:18 
AnswerRe: ASP.Net Core separate API and UI projects Pin
Json Dev23-Feb-19 3:33
MemberJson Dev23-Feb-19 3:33 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Mycroft Holmes23-Feb-19 12:23
professionalMycroft Holmes23-Feb-19 12:23 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Json Dev23-Feb-19 12:55
MemberJson Dev23-Feb-19 12:55 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Mycroft Holmes23-Feb-19 15:55
professionalMycroft Holmes23-Feb-19 15:55 
GeneralRe: ASP.Net Core separate API and UI projects Pin
Json Dev23-Feb-19 17:49
MemberJson Dev23-Feb-19 17:49 
QuestionC# CREATING SIMPLE ORACLE API Pin
sellol12-Feb-19 2:20
Membersellol12-Feb-19 2:20 
AnswerRe: C# CREATING SIMPLE ORACLE API Pin
Richard MacCutchan12-Feb-19 6:28
mveRichard MacCutchan12-Feb-19 6:28 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
sellol12-Feb-19 6:37
Membersellol12-Feb-19 6:37 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
Richard MacCutchan12-Feb-19 6:51
mveRichard MacCutchan12-Feb-19 6:51 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
sellol12-Feb-19 7:01
Membersellol12-Feb-19 7:01 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
Richard MacCutchan12-Feb-19 7:05
mveRichard MacCutchan12-Feb-19 7:05 
AnswerRe: C# CREATING SIMPLE ORACLE API Pin
Mycroft Holmes12-Feb-19 14:52
professionalMycroft Holmes12-Feb-19 14:52 
AnswerRe: C# CREATING SIMPLE ORACLE API Pin
jschell23-Feb-19 11:59
Memberjschell23-Feb-19 11:59 
GeneralRe: C# CREATING SIMPLE ORACLE API Pin
sellol23-Feb-19 20:36
Membersellol23-Feb-19 20: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.