I am learning .net and building a site that uses URL routing.
I work, though, trying to get data from the database, I need to pass an ID parameter, for example:
services / {identifier} / {category} / {subcategory}
briefcase / {ID} / {category} / {name}
Blog / {date} / {ID} / {name}
I saw websites that do the same, but they don't seem to pass an ID parameter, how do they achieve this?
if they wanted to receive information about a particular service in accordance with the link above, would you simply run an SQL query looking for a match for the name of a subcategory or for a blog post that you are looking for by name and date on the blog?
It seems to me that this is a little strange, and if you have people adding blog entries, etc., there is always a small opportunity for more than one match.
Thanks for any help,
J.
Jboom source
share