0

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 2

1

Click the show all files icon on top of Solution Explorer and you should be able to see it.

Sign up to request clarification or add additional context in comments.

3 Comments

Also, checked the website folder in windows explorer and global.asax doesn't exist
So can I just add global.asax to my website and it will like it was within application?
0

you should look into the MVC design patten.

4 Comments

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.
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.
I know, but this would force rewriting the whole application. I just need to replace url address of the website with a custom one.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.