Hello every one,
i have problem in Routing URl. Please help me on this issue.
-> I have create one mvc application in that i have got Homecontroller with Index.aspx and About.aspx page.
-> when i click on Index.aspx page then it is call HomeController and in that it is call Index action method. Same as About.aspx page it is call HomeController and in that it is call About action method.
All thing is here work perfect...
but now i want that if i click About.aspx then it is call HomeController and in that it is call Index action method but it is display content based on which url pass and get data from database.
suppose Aboutus page content is come from the database his id in the database is "1". When i click http://server.com/AboutUs then it is called Index action method in that i can fetch the data from the database and display the content.
Same as other page like Faq, Terms & condition which is all comes form the database.
so in the url i display the page name but all are call same action method , pass the id and display the result.
So it is possible to doing this.
View Complete Post