
|
Hi,
I have a contact.aspx page. I am able to go to it using this url:
http://www.JassimRahma.com/contact.aspx
but when I use this url it doesn't work:
http://www.JassimRahma.com/contact
I don't know why it's going to the message.aspx?
while other MapPageRoute works like home, news, etc
here is my global.asax:
routes.MapPageRoute("jassim_rahma_contact", "contact", "~/contact.aspx");
and I don't have anything in my Page_Load in contact.aspx.
|
|
|
|

|
It works both ways for me from here. Perhaps you have already fixed your issue.
I wasn't, now I am, then I won't be anymore.
|
|
|
|

|
Yes, problem solved. here is the problem and solution.
This is my code:
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("jassim_default", "home", "~/Default.aspx");
routes.MapPageRoute("jassim_default_arabic", "arabic", "~/Arabic.aspx");
routes.MapPageRoute("jassim_cv", "cv", "~/cv.aspx");
routes.MapPageRoute("jassim_skills", "skills", "~/skills.aspx");
routes.MapPageRoute("jassim_projects", "projects", "~/projects.aspx");
routes.MapPageRoute("jassim_experience", "experience", "~/experience.aspx");
routes.MapPageRoute("jassim_news", "news", "~/news.aspx");
routes.MapPageRoute("jassim_goto_news", "goto/{ID}", "~/goto.aspx");
routes.MapPageRoute("jassim_goto_news_news", "news/{ID}", "~/goto.aspx");
routes.MapPageRoute("jassim_goto_news_news_root", "{ID}", "~/goto.aspx");
routes.MapPageRoute("jassim_tools", "tools", "~/tools.aspx");
routes.MapPageRoute("jassim_speed", "speed", "~/netconn.aspx");
routes.MapPageRoute("jassim_bmi", "bmi", "~/bmi.aspx");
routes.MapPageRoute("jassim_browser", "browser", "~/browser.aspx");
routes.MapPageRoute("jassim_myip", "myip", "~/myip.aspx");
routes.MapPageRoute("jassim_age", "age", "~/age.aspx");
routes.MapPageRoute("jassim_rahma_contact", "contact", "~/contact.aspx");
}
I just moved this line to the bottom and it worked:
routes.MapPageRoute("jassim_goto_news_news_root", "{ID}", "~/goto.aspx");
because I noticed all MapPageRoute below this line are not working.
I still don't know the reason for the problem but happy that my problem was solved.
Thanks...
|
|
|
|