Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > isapi and custom usercontrols View modes: 
User avatar
Member
Member
neil-myfitfund - 5/6/2011 7:17:45 AM
   
isapi and custom usercontrols
Hi - we have a custom usercontrol embedded into a Kentico page. The result will be based on a URL parameter passed to the control.

We want to modify the URL with an ISAPI rewrite but we are struggling a little - we think it's clashing with Kentico.

So - www.foo.com/stores.aspx?storeid=1 would turn into www.foo.com/stores/walmart

Thoughts? Are there tricks to doing this? Have others run into issues here?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 5/9/2011 6:25:57 AM
   
RE:isapi and custom usercontrols
Hi,

this could be achieved easily in case requested URL would look like:

www.foo.com/stores.aspx?storename=walmart

This way you could pass query parameter to the control using wildcards and URL:

www.foo.com/stores/walmart

Above url would be changed to:

www.foo.com/stores.aspx?storename=walmart


so you could work with storename query parameter inside your control.

Is storeId really needed in your control?

Best regards,
Ivana Tomanickova