Information générale
Catégorie:
The Mere Mortals .NET Framework
>Couple of questions :
>If my project has HTML and ASPX which i want to seperate do i have to chnage this pathing each time i want to rediect to antoher URL because it doesn't have a search hierarchy?
Generally you will need to specify at least the relative path for any web page below the application root. I did a search of the MM Framework, it looks like this is the only place where the response.redirect() is used and it just so happens that the path for userlogin.aspx is hardcoded. An easy workaround would be to just leave the userlogin files where they are at, but go ahead and put the rest of your aspx files in sub-directories as needed.
>Can I set this in the root APP.cs file or somewhere so it is common?
>If no, do i have to subclass the bas MM classes to get this?
A lot of people I know would said to just go ahead and sub-class all the MM classes (and then use your sub-class instead of using the MM classes directly). For now, you could go ahead and just sub-class mmBusinessWebPage and override RedirectToLogin().
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement