Click here to Skip to main content
15,884,986 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAccepting application/x-www-urlencode format data Pin
R191119-Sep-18 23:52
R191119-Sep-18 23:52 
AnswerRe: Accepting application/x-www-urlencode format data Pin
Richard Deeming20-Sep-18 0:45
mveRichard Deeming20-Sep-18 0:45 
GeneralRe: Accepting application/x-www-urlencode format data Pin
R191120-Sep-18 2:12
R191120-Sep-18 2:12 
QuestionMVC: Can a controller know its URL without being called? Pin
Foothill18-Sep-18 9:22
professionalFoothill18-Sep-18 9:22 
AnswerRe: MVC: Can a controller know its URL without being called? Pin
Richard Deeming18-Sep-18 10:49
mveRichard Deeming18-Sep-18 10:49 
GeneralRe: MVC: Can a controller know its URL without being called? Pin
Foothill18-Sep-18 11:45
professionalFoothill18-Sep-18 11:45 
AnswerRe: MVC: Can a controller know its URL without being called? Pin
F-ES Sitecore18-Sep-18 23:43
professionalF-ES Sitecore18-Sep-18 23:43 
GeneralRe: MVC: Can a controller know its URL without being called? Pin
Foothill19-Sep-18 3:18
professionalFoothill19-Sep-18 3:18 
I was assuming that if the application can deduce which controller and action to route an http request to when a request is received that the reverse was also possible. I guess that it isn't possible after all.

It would appear that a controller cannot know where it's located in the website hierarchy until after it's called. Since the default routing basically follows the file system and/or namespaces I thought that there might be a way provided to backtrack up the structure to get a controller's absolute URL at runtime.

Sigh, back to peppering my controller and filter code with string literals.
if (Object.DividedByZero == true) { Universe.Implode(); }

QuestionASP.Net MVC4 Razor Pin
jvrao8283bca13-Sep-18 6:25
jvrao8283bca13-Sep-18 6:25 
QuestionHow to Implement AD Login(ADFS) with existing asp.net 2015 website(C#) Pin
Kenneth Menor4-Sep-18 19:10
Kenneth Menor4-Sep-18 19:10 
QuestionAsp.net mvc Pin
Member 139714663-Sep-18 7:26
Member 139714663-Sep-18 7:26 
AnswerRe: Asp.net mvc Pin
Richard Deeming3-Sep-18 10:45
mveRichard Deeming3-Sep-18 10:45 
AnswerRe: Asp.net mvc Pin
Vincent Maverick Durano4-Sep-18 4:10
professionalVincent Maverick Durano4-Sep-18 4:10 
Questionpost list of products instead of single product in post method odata Pin
Asif Rehman28-Aug-18 22:30
Asif Rehman28-Aug-18 22:30 
AnswerRe: post list of products instead of single product in post method odata Pin
dan!sh 28-Aug-18 22:40
professional dan!sh 28-Aug-18 22:40 
Rant[REPOST] post list of products instead of single product in post method odata Pin
Richard Deeming29-Aug-18 2:58
mveRichard Deeming29-Aug-18 2:58 
QuestionSub Level Hyperlink not showing in asp.net Pin
Member 1115418828-Aug-18 19:13
Member 1115418828-Aug-18 19:13 
AnswerRe: Sub Level Hyperlink not showing in asp.net Pin
dan!sh 28-Aug-18 20:55
professional dan!sh 28-Aug-18 20:55 
GeneralRe: Sub Level Hyperlink not showing in asp.net Pin
Member 1115418828-Aug-18 21:04
Member 1115418828-Aug-18 21:04 
GeneralRe: Sub Level Hyperlink not showing in asp.net Pin
dan!sh 28-Aug-18 21:09
professional dan!sh 28-Aug-18 21:09 
QuestionHow to publish more than one webapps from visual studio in single click Pin
Dominic Louis27-Aug-18 20:12
Dominic Louis27-Aug-18 20:12 
Question.Net Core 2.1, MongoDB, add states collection to country states collection Pin
jkirkerx24-Aug-18 12:31
professionaljkirkerx24-Aug-18 12:31 
Question.Net Core 2.1, seeding a MongoDB, foreach on Countries, Pin
jkirkerx24-Aug-18 9:47
professionaljkirkerx24-Aug-18 9:47 
AnswerRe: .Net Core 2.1, seeding a MongoDB, foreach on Countries, [sort of solved] Pin
jkirkerx24-Aug-18 10:25
professionaljkirkerx24-Aug-18 10:25 
General[solved] Pin
jkirkerx27-Aug-18 7:59
professionaljkirkerx27-Aug-18 7:59 

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.