E-Books to your Email

Check if url contains text in C# (asp.net 6)

Question: How do you check if Url in the Asp.net MVC has a certain value or text?

Login to See the Rest of the Answer

Answer: Follow the steps below:

1. Make sure you are using the following Namespace in your Views
     @using Microsoft.AspNetCore.Http

2. In your View or a Layout type


//Do some Magic


© 2023 - ErnesTech - Privacy
E-Commerce Return Policy