Results 1 to 4 of 4

Thread: ASP.NET - WebForm - URLs Broken

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,809

    ASP.NET - WebForm - URLs Broken

    I am supporting a legacy VB.NET ASP.NET project that uses web forms

    While they have many .aspx pages with their own unique filename, somehow all of the routes get resolved master.aspx.

    Let's say that the user is on an search entity page, they go to edit an entity which redirects them to the update entity page, if they hit the back button then they're always routed a default page instead of back to the search entity page.

    Being that I have zero experience with WebForms, what should I be looking for that could cause that sort behavior?
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,524

    Re: ASP.NET - WebForm - URLs Broken

    My hangman page uses webforms. It’s a single user game. If more than one player is accessing the web app at the same time, things start looking a little buggy… I’m currently in the process of rewriting some web apps…

  3. #3

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,809

    Re: ASP.NET - WebForm - URLs Broken

    I don't hate web forms but the issue with this project is that it was essentially cowboyed by a single developer for so long that there is no consistency and this is a huge project.

    The first thing I do when I go to touch any page is to turn Option Strict on and make the necessary changes.

    But the URL staying the same is one "feature" I cannot figure out how he implemented.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,621

    Re: ASP.NET - WebForm - URLs Broken

    I think, if I remember correctly that there is also a setting in either web.config or the other...Err what's it called...Err global.asax I think, that has a default redirect page.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width