Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
141 views

Routing classic ASP with ASP.NET webforms

Before starting, I see many answers for MVC but I'm not using MVC. I just want this but for WebForms, not MVC. For a hybrid Classic ASP/ASP.NET WebForms project, I'm trying to setup simple routing ...
MPelletier's user avatar
  • 16.6k
0 votes
0 answers
68 views

Adding Page Routing To Legacy C#/ASPX Web Applications

I am working on legacy C# & ASP.NET Webforms project where I would like to add routing in order to make the URLs more "friendly" to the user, while a longer-term replacement application ...
blcamp's user avatar
  • 119
0 votes
0 answers
88 views

Problems with https routes

I have two systems that talk to each other, one in mvc and the other in webforms. I have ssl certificate, and when it's in mvc, it works on https, but when it goes to webforms, it loads https, and ...
Mari's user avatar
  • 59
0 votes
1 answer
148 views

Data-toggle fixing when routing in ASP.net

When I route in my ASP.net web app, the following toggle doesn't work <div class="collapse navbar-collapse justify-content-center fixed" id="collapsibleNavbar"> <ul ...
user avatar
0 votes
1 answer
621 views

Routing in ASP.net Web forms with id parameters

I registered this MapPageRoute in my RouteConfig.cs routes.MapPageRoute( "ProfileRoute", "Profile/{userid}", "~/Profile.aspx" ...
user avatar
0 votes
1 answer
90 views

How to simulate MVC routing in WebForm ASP.Net?

You all have seen how MVC minifies URL by default in form of url: "{controller}/{action}/{id}". It's done in RouteConfig.cs. I'm looking for a way so that a webform URL like mywebsite.com/Page/...
Muhammad Musavi's user avatar
0 votes
1 answer
164 views

how to load routes dynamically from database in asp.net webforms

I want to load routes on every requests, i have tried to put it this code RegisterBundles(RouteTable.Bundles) to the Application_Beginrequest. seems this method helped me but also now when i refresh ...
Hallowen's user avatar
  • 133
1 vote
0 answers
795 views

.NET Webforms routing works on localhost but not on IIS 8

I am creating a .NET web forms application and attempting to use friendly URLs for the first time. The application is targeting framework 4.7.1. Everything is easy and works great on localhost. When I ...
erastl's user avatar
  • 411
0 votes
0 answers
111 views

How to set Route Prefix in conventional routing

I am having an old Asp.Net Web Form application where I am mapping urls using conventional routing. Now I want to add a common prefix to all the aspx pages. One solution is - I can manually add ...
nitishsharma's user avatar
0 votes
0 answers
41 views

WebApi in Webforms app not routing on Azure

I have a Web-Forms application, deployed onto Azure. The original application makes use of Web Methods in code behind in aspx files and ashx handlers. ASP.Net generates Javascript references for ...
user1654348's user avatar
1 vote
0 answers
37 views

Routing WebForm to MVC

I want to redirect Asp.net [ WebForm ] to Mvc View or Mvc View to WebForm vise versa in different solution Routing between MVC to WebForm How can I do this Please let me know if any solution ...
shivani's user avatar
  • 1,028
1 vote
0 answers
475 views

ASP.NET custom routing and friendly URLs

I have a website (ASP.NET WebForms) where I build the routing table from the database. Additionally, I have the friendlyUrl enabled. In the Application_Start of the Global.asax I have the following ...
Giox's user avatar
  • 5,113
1 vote
2 answers
510 views

How to change my web-forms url from "Pages/Games.aspx?page=1" to "games/1"?

I use VS 2017 I have simple project structure. Using old-fashion web-forms I'm trying to add simple routing for my Games.aspx. According to MSDN it would looks like this. Just creating new ...
Serenkiy's user avatar
  • 299
0 votes
1 answer
337 views

ASP.NET WebForms - routing gives 'page not found error '

I am using asp.net routing and getting a 404 error. If I do not use an id value then I can see page. But I want to pass iddata with route and getting 404 Page Not Found error. Not sure why we ...
Mert's user avatar
  • 99
0 votes
0 answers
505 views

Microsoft.AspNet.FriendlyUrls 404.0 - Not Found

I run my projec via vs 2013 Webforms.Framework 4.5. I use Microsoft.AspNet.FriendlyUrls library I try it first time, and I try everything but get not success.I dont know where the problem is.I tried ...
Alican Kablan's user avatar
0 votes
1 answer
191 views

use slash "/" instead of query string symbol "?"

I have an ASP.NET (webforms) project, and there is an aspx page named "Category(.aspx)". in this page, I get a query string named "categoryId" which is the category primary key in the database, and ...
Arad's user avatar
  • 12.4k
0 votes
1 answer
63 views

When I try to do routing I get a parse error in ASP.NET Web Forms

I published the web site and uploaded it to FTP (ASP.NET Web Forms C#). I use routing in the project and this is my routing page's code (I only write 1): protected void Application_Start(object ...
Shadouspan's user avatar
2 votes
1 answer
100 views

Webforms routing - same signatures with different pages?

I'm working on an established site. Although small (in terms of pages), there are some big money landing pages as well as the usual stock pages. Because the site was relatively small, the page ...
John Ohara's user avatar
  • 2,891
0 votes
0 answers
132 views

Issue with Routing while Adding MVC 5 to Webforms 4.6

we currently have a big Webforms application thats currently running on 4.6 framework. We have the webforms routing already setup. Now, we are trying to add MVC to this project and make it a hybrid ...
Surya Garimella's user avatar
0 votes
1 answer
563 views

jquery ajax not working when I using asp.net routing with asp.net webforms

I'm using asp.net routing in my projet with asp.net webforms but my jquery ajax methoud not working how i resolve this problem me server side methoud is: [WebMethod] public static string search(...
Sajad Vahmi's user avatar
1 vote
0 answers
370 views

Custom Routing for hiding parameters in Url Routing using webforms

My Extension Method for MapPageRoute public static Route MapPageRoute(this RouteCollection routes, string routeName, string routeUrl, string physicalFile, bool ...
Tummala Krishna Kishore's user avatar
1 vote
1 answer
522 views

Routing based on same parameter(s) pattern and different pages in web forms

I am implementing Routing in web forms : These is my custom routings public static void MyCustomRoutes(RouteCollection routes) { routes.Ignore("{resource}.axd/{*pathInfo}"); ...
Tummala Krishna Kishore's user avatar
0 votes
1 answer
305 views

Route values from HTTPContext in Webform

I'm using Routing in web-forms, I'm trying to write HTTP module in which I want to retrieve Route values from the route. When I try to use below line I get null. Is there anything other than this to ...
Krishna's user avatar
  • 347
0 votes
0 answers
346 views

ASP.NET Web Forms Routing and paths to js files

I am working on an ASP.NET Web Forms project that make use of Routing. I have two routing situations: http://mywebsite.com/section http://mywebsite.com/section/subsection My js files are stored in ...
Antelion's user avatar
  • 235
1 vote
1 answer
84 views

ASP.NET Routing Problems

I am using this method in almost all my applications but now it shows me a System.FormatException in mscorlib.dll global.asax routes.MapPageRoute("Page/{ParameterId}", "Url/{ParameterId}", "~/...
jhans's user avatar
  • 11
0 votes
0 answers
211 views

ASP .Net Route to ignore pages folder

My Web Forms app has all aspx files in a root "pages" folder. So, when I try to access them, obviously the url will be http://mysite/pages/default.aspx. Is there a way (other than a rewrite rule in ...
MachadoPN's user avatar
0 votes
1 answer
704 views

Routing, the Query String and existing WebForms URLs

I have a WebForms application and was thinking about using routing for friendlier URLs. However, during my tinkering I discovered that the query string parameters which are a part of a route are no ...
Jonathon Watney's user avatar
0 votes
1 answer
659 views

Mixing WebForms and MVC5 routing not working

I have below code for my routing for web forms and MVC. MVC routing seems to be working fine but not the web form when I mix both. routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes....
seUser's user avatar
  • 1,103
3 votes
0 answers
623 views

Routing Url confined only in a specific folder using ASP.NET Web Forms

Suppose I have a ASP.NET Web Forms Application project. The tree structure of Solution Explorer looks like this: WebApplication1 | |__ App_Start | |__ RouteConfig.cs | |__ View | |__ Default.aspx ...
arnobpl's user avatar
  • 1,216
0 votes
1 answer
58 views

How to Routes Web API controller Existing Web Form Project

I tried implement web API controller for my existing web form project, i used following code for route my API. RouteTable.Routes.MapHttpRoute( name: "EnadocApi", routeTemplate:...
Tarindu Sandamal Keerthirathna's user avatar
1 vote
0 answers
416 views

Url Routing without parameters in ASP.NET WebForm

I am using routing in aspnet webform. I have without parameters pages. Sometimes the wrong page routing. My code: RouteTable.Routes.MapPageRoute("Login", "", "~/Login.aspx"); RouteTable.Routes....
egvrcn's user avatar
  • 984
1 vote
2 answers
4k views

I need to register a dynamic route in Global.asax file

I store my Page details in Menu Table as MenuName, MenuID, ParentID, PageURL, PageHandler Home, 1, 0, /,Default.aspx About Us, 2, 0, /about-us/, About.aspx Contact, 3, 0, /contact/, contact.aspx ...
Learning's user avatar
  • 20k
1 vote
0 answers
105 views

How to handle url in Multi Tenant application with web forms

I have one application with is running on charnjeet.com/test/home and i have done it masking with url i.e www.abc.com.I have some issue with url i.e when i have open Product page i.e www.charnjeet.com/...
Charnjeet Singh's user avatar
0 votes
1 answer
469 views

ASP WebForms routing - Get route url by physical file

I have set up 10+ MapPageRoutes, which works fine. Now I need to generate urls for menus. Method Page.GetRouteUrl seems not applicable, because I dont want to setup every link manually. Is there any ...
Daniel Treml's user avatar
3 votes
1 answer
2k views

routes.MapPageRoute does not work with point?

I am using asp.net webform. In my application, I show user page like http://localhost/username In RouteConfig.cs I register routes like this: routes.MapPageRoute("default", "", "~/default.aspx"); ...
Yigit Pilevne's user avatar
0 votes
0 answers
310 views

How can I change Route URL to Physical URL? (ASP.NET Web Form)

How can I change Route URL that browser shows on address bar to Physical URL on ASP.NET Web Forms from code-behind?
Amir's user avatar
  • 11
0 votes
1 answer
275 views

Not displaying 404 aspx page from site or server

How can I force IIS and ASP.NET WebForms to go to our custom error page for an undefined routing? I've reviewed the question asp-net-not-displaying-a-custom-404-page-as-configured. We are using IIS ...
BermudaLamb's user avatar
0 votes
1 answer
486 views

URL Routing - error image (Asp.net web form)

I am writing a web page to show image. I have used the asp.net web forms URL routing to navigate to this page. map web: webform1.aspx with master page: site.Master. 'demo.jpg' in folder Images. demo....
Nguyễn Việt Tiến's user avatar
1 vote
2 answers
10k views

How to create friendly url in asp.net webform with single route

I am not sure if it is possible to create complete friendly url (Slug i think they call it in wordpress). I want to create friendly url dynamically with single route defined in global.asax file. ...
Learning's user avatar
  • 20k
0 votes
0 answers
41 views

Visual Web Developer 2013 routing

I have setup a test website on visual Studio express 2013. I chose Framework 4.0 and webform based website with default structure. -Default.asp -About.aspx -Contact.aspx Above pages are ...
Learning's user avatar
  • 20k
2 votes
4 answers
2k views

ASP.Net WebForms Routing Single Route for Multiple Destinations

I am looking into setting database routing up for a new website I plan to create. I have been looking at the following tutorial with regards to utilising friendlyUrls from a database: http://www.asp....
DavidReid's user avatar
  • 449
0 votes
0 answers
993 views

Web API No type was found that matches the controller named

I see that this error gets asked a lot, but so far no luck. I have a .Net 4 (VS2010) web SITE project. I have a Web API project as a seperate project, in the same solution. I can call the Web API from ...
Ethan Schofer's user avatar
0 votes
1 answer
1k views

ASP.Net Webforms - how to get the friendly URL for the currently executing page

I have enabled friendly URLs in my application by having the following line: routes.EnableFriendlyUrls(); in my App_Start/RouteConfig.cs file. I would like to get the Friendly URL of the currently ...
Moiz Tankiwala's user avatar
0 votes
1 answer
55 views

Web forms routing and keywords in route url

I am having routing weirdness. Are certain keywords a problem in route paths. For example, this route works: routes.MapPageRoute("AdminLogin", "horse", "~/AdminAccount/Login.aspx"); But this route ...
Ethan Schofer's user avatar
1 vote
1 answer
2k views

Default folder routes using Microsoft.AspNet.FriendlyUrls webforms

I'm starting a new webforms project using Microsoft.AspNet.FriendlyUrls but want to be able to set a default route for a folder. I have a folder called news which contains news.aspx and newsitem.aspx. ...
Bobney's user avatar
  • 320
0 votes
0 answers
52 views

_DoPostBack is undefined not previously answered but related to routing

First, I've studied the _doPostBack is undefined error extensively. I'm aware that .NET 4.0 and earlier versions of .NET didn't include all the proper definitions for recognizing newer browsers. I am ...
Curtis White's user avatar
  • 6,343
0 votes
1 answer
3k views

Set web form as default page in an ASP.net MVC project

I have an Mvc project however i need a webform to be the startup page when a user goes to the site directly without specifying a page. I can use the "MapPageRoute" to take prioirty over the Default ...
user2945722's user avatar
  • 1,313
0 votes
2 answers
289 views

.aspx page causes "404 not found" when not in root of an MVC5 app

Ok, this one has me stumped, been at it all day. I have an MVC5 app that can't find an .aspx page in a subfolder. So I have an .aspx page here /Reports/page.aspx and i've tried adding each of these ...
MiiisterJim's user avatar
0 votes
1 answer
269 views

Identical route working in RouteConfig, but not AreaRegistration

I am working in a Web Site Project (not Web Application) where Web Forms and MVC happily live together. To organize my code, I'm trying to setup Areas with the MVC part and am running into this ...
afuzzyllama's user avatar
  • 6,548
0 votes
1 answer
1k views

How to handler url routing in asp.net webforms with similar path but multiple Page Handlers

Different urls with different page handlers are not working properly as it always take first route handler from global.asax file. Page_ID Page_Name Page_url ...
Learning's user avatar
  • 20k