Click here to Skip to main content
16,016,744 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I want to delete some user from my user tabel in ASP.NET MVC:

SQL
public ActionResult Delete(String id)
{    
    return View(db.aspnet_Users.First(z => z.UserName ==id));
}


but the id is null. I don't understand why?!!
Posted
Updated 23-Aug-10 8:25am
v2
Comments
Richard MacCutchan 23-Aug-10 3:49am    
Look at the place where you actually call your function to see where it is getting the id field from.
shaghyegh 23-Aug-10 15:17pm    
tnx

check in global.aspx routings
 
Share this answer
 
Comments
shaghyegh 23-Aug-10 15:17pm    
i chacked tanx
ha I undeStood this error appear becuse of Actionlink
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900