using primary key in asp.net mvc urls
问题 i keep hearing that i shouldn't be using primary keys in my asp.net mvc url for example: /Users/Edit/1243 what is the issue here? what is the alternative, putting in user names? as you want it to be unique, it seems like primary key is the cleanest option thoughts? 回答1: I don't see any problem with putting the primary key on the URL (neither do the creators of Stack Overflow and countless other sites either for that matter). One thing that is often done is to supply the primary key and also