Database reading in load event
<p>I made a website (asp.net, c#) width database reading and writind in the load event. The problem is: when the loading page's aspx.cs in runed down, the process is jumping to the master page's aspx.cs (session validation), then jumping back to my "loading" page's aspx.cs. This do it by 4 times, so at the end I have got 4 new records in my database table, but I need only one.
I think my database code is goog, because is it is a button click event is works fine.
<br><br>
Where should i put database (mssql) reading in my asp.net websit source code?<br>
Is it good in load event?<br>
<br></p>
