It seems that sometimes (but not always) my button click event is being fired twice. The fact that it seems to happen sometimes but not always is really puzzling me. Here is m
The solution is already been mentioned in different answer . Use type ="button" instead of submit
Here is a sample code
Load
And the backend code to handle the on click
protected void btnLoadCustomerFile_Click(object sender,EventArgs e) { LoadCustomerFile(); }