ATA ATA - 3 months ago 18
ASP.NET (C#) Question

what is the best way for web adressing

I want to ask about web adressing. i am showing users product informations on my web application. i don't want to Show urls like "xxx.aspx?Id=yyy". i want to Show like "http://example.net/xxx/yyy" and get values for yyy from database.
for example https://eksisozluk.com/entry/27279462. i don't know what it called to making this. if you tell me what it is called, even that will be very helpful.

my database tables has id, name, info, img...
my wish (xxx.net/product/product-name-here). right now website is like (xxx.net/product.aspx?=productid)

Thanks.

Answer

All you want is URL Rewriting and Routing which you can get it from official documentation for ASP.Net from Microsoft.

In this documentation you can set your website routing schema as you wish (Like what you mentioned in your post).

If you develop an ASP.Net webform application, Just see this documentation.

Hope this help you bro.

Comments