Once you have put a NewsView control on a specific page (in your case ~/News.aspx) the control
automatically handles requests to view single news items. However you can set it up to use your custom URL for the the single news item and for the news list items.
In your case:
1) Go to the page where you have your news list displayed on (~/News.aspx page) click edit of your NewsView control, select Advanced
, go to the Explicit Links
section and select the appropriate URL for the single news item in SingleItemUrl
(for example ~/News/NewsItem.aspx).
Click I'm Done
and publish the page.
2) Go to the page where you display single news items (~/News/NewsItem.aspx) and perform the same routine, except this time you will set the property ItemListUrl
to be ~/News.aspx.
Furthermore if you wish your URLs to be rewritten in a specific way. Gabe Sumner has a very interesting webinar on URL rewriting. You can watch the webinar here
. In it, it's explained how to rewrite URLs using as an example the Blogs Module controls but the principle is basically the same.
the Telerik team