Posted on: 12/15/2014 11:45:58 AM | Views : 544

Hi

I’m using web forms 4.5.1 and routing. Is there a way to combine “<%$RouteUrl:..” and “<%$RouteValue:..”?
A more detailed description of the problem is this. I have a simple route where after the url I have the client name, something like: http://www.somewhere.com/myclientname
In my home page I have various asp:Hyperlink’s controls. It seems that I cannot set the “NavigateUrl” property of these control’s because it doesn’t include the route date.
(i.e. for a page with the name “example.aspx” I cannot have a NavigateUrl set to “~/example.aspx” because it doesn’t contains the route data)
I need to have something like NavigateUrl=” <%$RouteUrl:ClientName= RouteValue:ClientName  %>/example.aspx” but it doesn’t seems to work!
(fyi: I cannot use directly <%$RouteUrl:ClientName=MyClientName%> because the user is specifying this parameter ...

Go to the complete details ...