0

Visual studio error

hey guys, i have an Asp.net mvc project. i want to send some data with an action link, like this: <a href="~/user/GetUserDetails/@model.UserID">Get Details</a> and I have the method ob controller like this: public ActionResult GetUserDetails (int UserID) { .......} when i click on the action link, the visual show me an error which says: you can not send null parametrs to this method... i have do it before and it was ok and working nice... but now it show me this error. what i shoud to do???

17th Aug 2018, 9:05 AM
Beny Saberi
Beny Saberi - avatar
1 Odpowiedź
0
check ur data, and change all value null with "0" or empty
29th Sep 2018, 7:43 PM
Amoun
Amoun - avatar