Hello, I am working on a project in which I want to upload images. My code is working fine but sometimes it is performing multiple insert statements automatically when images are being uploaded. In my application, a unique registration id is assigned to users when they register on the site, & when user logs into the system and tries to upload images, multiple insert statements are automatically executed with different (random) registration ids and "unnamed" file name. It means images uploaded by other users are displayed in logged in user's profile(because multiple entries with different registration ids are being added in the table). Why multiple entries are being added into the table even if code contains only single insert statement? I am new in asp.net, & this is my first application. Please help regarding this. I am facing lot of troubles because of this issue. Here is my design code and code behind. Please review it and tell me where am I doing wrong. ...

Go to the complete details ...