Are Querystrings in .NET a good practice?

I am developing a web application having a database backend. I used to do things like: http://page.com/view.aspx?userid=123 to view user profile 123; using the request.

Is using a query considered good practice? Is there anything else I should do?

I am using C # 4.0 and ASP.net.

+3
source share
6 answers

I think using query strings is fine, but there is a case to do for hackable URLs , as they are more understandable to advanced users and optimized for SEO. For example, I think it http://www.example.com/user/view/1234looks more intuitive than http://www.example.com/view.aspx?user=1234.

When using IIS 7.0, you do not need to modify the application to use pretty URLs. The URL is a Rewrite Module and several rewrite rules should suffice.

0
source

Your question is not really a .NET question ... it is a problem that every web platform and web developer faces.

, , , URL-, "" -. , , , , , . StackOverflow , URL. , .

... , , URL, . , StackOverflow , "3544483", SEO/ URL- "querystrings-in-net-good-practice". - , , .

, WebForms Url Routing, , MVC NerdDinner. URL-, .

+6

, , , . (, null ..), , , 1245.

Session ViewState, QueryString - , .

+3

, , , . , , querystring , . ( ), - querystring .

+1

: , . -.

ShaderOp, URL-, URL-. , , URL- , .

0

, .

, , , uid. /profile .

, " ", "".

.

0
source

Source: https://habr.com/ru/post/1761039/


All Articles