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…
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
Nagaraj
  • 221
  • 2
  • 5
  • 21
0
votes
1 answer

CSS bindings while using url routing

I have asp .net 4.0 application in which i am implementing url routing. I have defined my routes in global asax and able to call them correctly. but my problem is when I am calling a route with parameters my css was not binded properly . I linked my…
Nagaraj
  • 221
  • 2
  • 5
  • 21
0
votes
1 answer

URL routing with parametres causing multiple page loads and retrieving app folders as parametres

I am implementing URL routing in my asp .net 4.0 application. I have a hyperlink which redirects to another page with some parameters . Everything is fine until the first page load,I am able to get the values and page is loaded well ,after that my…
Nagaraj
  • 221
  • 2
  • 5
  • 21
0
votes
2 answers

BC30451: Name 'RouteTable' is not declared

I'm trying out some URL rewriting within my global.asax - similar to what's going on in this microsoft article http://msdn.microsoft.com/en-us/library/system.web.routing.routetable.routes.aspx I'm keep getting the error "BC30451: Name 'RouteTable'…
thegunner
  • 6,883
  • 30
  • 94
  • 143
0
votes
1 answer

How do I found the routing http modules loaded?

I am using the traditional Asp.Net website in which I am using the System.Web.Routing module. I want to find the way in which I know that the routing http modules is loaded or not?
Zohaib
  • 496
  • 7
  • 21
1
2