Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

querystring parameters in actionlink breaking
brucek
#1 Posted : Sunday, July 11, 2010 9:01:06 PM(UTC)
Rank: Newbie
Groups: Registered

Joined: 7/8/2010(UTC)
Posts: 6
Location: Melbourne, Australia
If i want to pass parameters to a page in a module via a actionlink i get this link:
http://devweb/Test/?ModuleUrl=mod_2960/Default/TestAction?year=2009&campaign=Christmas
This produces a error
'~/Default/TestAction?year=2009' is not a valid virtual path.

If I remove ?year=2009&campaign=Christmas the page works fine.

Could someone please tell me how to pass parameters to a module page either via querystring or link and if possible the format of the route.config entry?

Regards
Bruce
GazNewt
#2 Posted : Monday, July 12, 2010 2:31:04 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 2/2/2010(UTC)
Posts: 122
Location: England
Hi brucek,

Have you tried putting ModuleUrl= in the page's Advanced->Url settings so you get a SEO friendly url?

Mentioned here :
http://forum.kooboo.com/...RL-params-for-page.aspx

brucek
#3 Posted : Monday, July 12, 2010 10:12:37 AM(UTC)
Rank: Newbie
Groups: Registered

Joined: 7/8/2010(UTC)
Posts: 6
Location: Melbourne, Australia
Thanks Gaz, works fine.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.047 seconds.