I have a url that I want to map routing to:
http://siteurl.com/member/edit.aspx?tab=tabvalue
where tabvalue is one of: "personal", "professional", "values" or nothing.
I want to map it to a route like:
Member/Edit/{tab}
But my problem is - I don't know how to specify such constraints. I'm trying this regex:
^[personal|professional|values]{0,1}$
but it only works when I use url
http://siteurl.com/member/edit/personal
-or-
http://siteurl.com/member/edit/professional
and doesn't work for
http://siteurl.com/member/edit/
Any ideas how to specify the correct constraint?
P.S. I'm not using MVC, just asp.net WebForms
Thanks!