Start a new topic

Passing parameters to XMLPackages

Hi,


I have some custom packages that I need to pass one parameter.


Currently I pass it this way (and it works):

 

/topic/package-name?param=123

 

However I would like to pass it this way instead:

 

/topic/package-name/param/123

  

I tried it but then it returns me the error "Cannot create an abstract class.".

 

Ideas?


Thank you Mark, I will take a look on it!

What you are describing is adding route parameters. Adding route parameters requires doing some custom coding. You need to add routes via attribute on appropriate controller file or the routeconfig.cs (AspDotNetStorefront.Application project) for MVC to understand new route parameters.


1 person likes this
Login or Signup to post a comment