It could be that the page load event handler got registered twice. Set autoeventwireup=false in your Page directive. Then rerun the program again. If it hits your breakpoint only once, that was the problem. Somewhere it got registered explicity, then autoeventwireup registered it again.
Main Topics
Browse All Topics





by: prairiedogPosted on 2008-06-23 at 13:57:24ID: 21850293
Do you put your routine in a block like this:
If Not IsPostBack Then
' Your small routine
End If
In C#
if (!IsPostBack)
{
// Your small routine
}