0

url: WebsiteName/Player/Details/2

@Request.QueryString["id"]; is not working. but,

if the url is has been: WebsiteName/Player/Details?id=2 it is working.

Ramazan Sağır
  • 4,887
  • 1
  • 14
  • 15

1 Answers1

2

url: WebsiteName/Player/Details/2

You can passing value this way. Then you can get value in controller using this line....

RouteData.Values["id"].ToString()

Mukesh Kalgude
  • 4,814
  • 2
  • 17
  • 32