Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > UrlHelper Class View modes: 
User avatar
Member
Member
TG - 11/6/2012 4:58:40 PM
   
UrlHelper Class
Does anyone have a good example of how to use the UrlHelper Class to add to the query string when using a smart filter. I am trying to add in a form control that will accept a "From" date and a "To" date from the user and add a query string to a filter. I can get the filter to accept the values from the url when I type them in manually, but I don't understand how the UrlHelper is used to add these to the URL.

Any help would be appreciated.

Thanks

User avatar
Member
Member
kentico_davidb2 - 11/13/2012 12:42:24 AM
   
RE:UrlHelper Class
Hello,

you can make use of the API methods:

AddParameterToUrl(String, String, String)
URL to be modified, Parameter name, Parameter value

or

AppendQuery(String, String)
URL, New Query to append

Dave