09 Jan 2009
25 May 2012
Link to this post
I'm working on a MultiView Custom Widget and I'll like to change URL depending on selected view, so web user will have the sensation of being redirected to a new page, but its just a virtual path implementation. At same time, I'll like to be able to display information depending on URL submitted by web user. So, if my default view on widget displays information such as a list of addresses (Address Book Widget) and web user clicks over a row, then my widget view will change to display selected Address Book Detail information and URL will change to \Address-Book-Detail\123 where 123 denotes the Address Book ID. Then, I could copy/paste the URL into a new web browser section and page will render the Address Book Detail information as well.
Have you some sample code how can I achieve this goal or any link you could point me for it? I don't want to reinvent the wheel and be sure I'm follow same sitefinity development pattern. I saw this technique broadly used on Ecommerce Widgets. I don't want to create separate widget for each view 'cause I'll end up with a very complex configuration.