2
Answers

how to insert data from dynamic textbox in mvc

how to insert data from dynamic textbox in mvc
Answers (2)
0
Dharmraj Thakur

Dharmraj Thakur

NA 4.1k 61.7k 7y
Hi Dheeraj,
 
Just Run a query of checking user's permission before delete like this...

I assuming that you have a mapping table of UserPermissions
  1. IF EXISTS(select count(*) from UserRoleMapping where UserID = 1 and RoleID = 1 and PermissionID = 1)  
  2. BEGIN  
  3.     --delete the data  
  4. END  
  5. ELSE  
  6. BEGIN  
  7.     --you have no rights to delete the data  
  8. END 
 Thats it...