Share via

Editing Query String Structure

Ulas KAYALAR 236 Reputation points
2021-07-20T08:50:51.65+00:00

Standard query string;
/products.aspx?productID=1

I want
/products/productname

I have searched a lot but the results I have reached are generally valid for asp.net mvc. How do I provide this structure in asp.net webform?

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

Developer technologies | ASP.NET Core | Other

Answer accepted by question author

Yijing Sun-MSFT 7,106 Reputation points
2021-07-21T03:01:59.103+00:00

Hi @Ulas KAYALAR ,

/products/productname

What's your route meaning? You could use routes.MapPageRoute in the Global.aspx.Just like this:
116519-new-text-document-6.txt
Best regards,
Yijing Sun


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ulas KAYALAR 236 Reputation points
    2021-07-21T07:55:51.69+00:00

    Thank you for the explanatory answer and the code file.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.