views:

380

answers:

1

Hi, I have User Controls (.ascx) file and when I place it inside a ListView Edit Template it throws a NullRefreche error (Object reference not set to an instance of an object). Can anyone tell me why? Is it because of a late binding?

A: 

Okay I found the error. It was a "User Error". lol The Paramter MemerbId pass was null. So I changed the Property public int MemberId{set;get;} to public int? MemberId{set;get;}. That fixed the issue.

Thanks

Shuaib