Questions tagged [system.web.routing]
23 questions
0
votes
1 answer
Exclude controller from route with string param .NET core
I want to have an endpoint that looks like: localhost:5000/abc123
This is basically to replicate the functionality of tinyurl.
Controller
[HttpGet("/{myString}")]
public async Task Get(string myString)
{}
This works but all files now…

user16130759
- 23
- 3
0
votes
1 answer
How do I match a URL starting with a literal tilde character (~) in System.Web.Routing / ASP.NET MVC?
I'm converting some old-school code to ASP.NET MVC, and have hit a snag caused by our URL formats. We specify thumbnail width, height, etc. in a URL by prefixing the special URL path with a tilde, as in this…

Dylan Beattie
- 53,688
- 35
- 128
- 197
0
votes
0 answers
How do I get .NETs System.web framework to write unauthorized requests to the log file
You'll have to pardon me if this is a dumb question - I'm trying to help out on a .NET project but I've never done any .NET
We have some Java-based REST services trying to do a GET with NTLM authentication to a .NET endpoint. What we are seeing…

DaBlick
- 898
- 9
- 21
0
votes
1 answer
Include Javascript file reference while using url routing asp .net 4.0
I am using url routing in my asp .net 4.0 application.
And I am using following referrence to call my javascript file.Its working fine in my devenv but when i Host in IIS .my javascript function in the file are not implemented