0
Hey,
Please check you store procedure is retruning data or not ? if not then Share your store procedure here?
0
Tech Writer 2.1k 524.5k 5y Should this before @using(Html.BeginForm() {.......}?
0
Please try to keep the UserId in hidden field or in any hidden text, so while submit button you can pass that UserId to controller, so you can easily get UserId in the controller.
In view store the UserId in hidden fields
- @Html.HiddenFor(x => x.UserId)
Let me know below
1) Are you calling action from jquery to submit data? or are you calling @BeginForm in the .cshtml page directly.
2) How can you get User id in controller??
0
Tech Writer 2.1k 524.5k 5y [NonAction]
public string GetRoleBy_UserID(string UserId)
{
return objIAccountData.GetRoleByUserID(UserId);
}
0
Hi,
Can you post GetUserID_By_UserName , GetRoleBy_UserID method details ?