MCQs>IT & Programming>Microsoft MVC Framework>Which of the following regular expressions can be used as a constraint so that the route will match only when the "productId" parameter is numeric?
Microsoft MVC Framework MCQs
Which of the following regular expressions can be used as a constraint so that the route will match only when the "productId" parameter is numeric?
Answer
Correct Answer: new { productId = @"\d+" }
Explanation:
Note: This Question is unanswered, help us to find answer for this one