More in this section

Forums / Developing with Sitefinity / Query string param keeps sticking in CreateHostViewCommand

Query string param keeps sticking in CreateHostViewCommand

2 posts, 1 answered
  1. bemara57
    bemara57 avatar
    135 posts
    27 Mar 2008
    23 Jul 2010
    Link to this post
    I am creating a hyperlink with this as the href:

    CreateHostViewCommand<GCBasedNewView>(String.Empty, "{#ID#}");

    So in my url it is like this:

    Problem is that when I do my processing and the redirect happens (or even if I press cancel), the ParentId continues to stick from page to page. How do I remove it in my logic for the next page? I am doing my logic in a inherited class of ContentItemsList<GCBasedView>.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    23 Jul 2010
    Link to this post
    Hello bemara57,

    You could try to use itmeUrl = CreateHostViewCommand<YOURVIEW<HOST>>("{#ID#}"); if this will not break the routing of your module or you could try using ControlUtils.RemoveQueryStringKey(url, this.ParameterKey);

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 1 answered