The link button only sets some value as true and does nothing else.
When I run the code the LinkButton's event just won't fire!
In my aspx page I got this LinkButton inside of a repeater with CommandName="SetDefault", some ID, runat property. That's it.
In my code, inside of myRepeater_Itemcommand(), I got this
if (e.CommandName == "SetDefault")
{
Users obj = new Users();
obj.IsDefault =开发者_JAVA技巧 true;
}
[EDIT] I resolved it myself. It was a silly mistake. "l" was missing from "SetDefault" in my aspx page :/
It was a silly spelling mistake in the Command Name. I resolved it myself.
精彩评论