I am trying to implement routing mechanism into my ASP.NET Web Forms - Site. Unfortunately all tutorials on how to do it I can find describe ASP.NET Web Forms - Application scenario, with Global.asax file. I obviously do not have this file. What are my options?
2 Answers
Click the show all files icon on top of Solution Explorer and you should be able to see it.
3 Comments
Bartosz
Also, checked the website folder in windows explorer and global.asax doesn't exist
IrishChieftain
Bartosz, try this: bytes.com/topic/asp-net/answers/…
Bartosz
So can I just add global.asax to my website and it will like it was within application?
you should look into the MVC design patten.
4 Comments
Jeremy
Please provide information as to why s/he should look into such a pattern. As it stands, your answer has nothing to do with the topic, nor does your link-only comment.
chris
MVC has an intrinsic routing mechanism readly built in, which is powerful and easy to use, giving good clean readable URLS, which I would imagine is the end point for the inital questioner.
Bartosz
I know, but this would force rewriting the whole application. I just need to replace url address of the website with a custom one.