Note that there are some explanatory texts on larger screens.

plurals
  1. USakuta
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COOk, I'm not able to duplicate the issue you're having with the code provided using my development machine. Regardless of how the page is called I am getting it (page_load) called only once and the db code is only being called once. Of course, I have your DB code commented out and put in a little variable there so I could include a breakpoint. The variable is only being referenced once when the page loads. Try commenting out the DB code (I know that the end result requires it, but just for this test) and place a variable and breakpoint in there and see if it's being called twice for you.
      singulars
    2. COThere isn't much to learn with regards to the MailMessage object. You're also not "reinventing the wheel" if you are customizing the error checking and alerting software to your needs. When you introduce others' code into your own it can result in unknown variables which I tend to like to avoid which is why I gave the suggestion I did. Should we have more programmers out there that don't understand the code that they're using and are just using it arbitrarily because it's readily available? I don't think we should. Perhaps you feel differently.
      singulars
    3. COOk, it sounds like what's happening is that because the code is getting loaded during the load, it's being loaded and then initialized again afterward when the image itself is being loaded. You could do a little checking to see if the code is being called by a page or img and then not execute the code if it's being called by a page? Or perhaps another option would be to put this code into the img's load function (change to an asp:image control) and see if that makes it only called once. I'll fool around with it today and see if I can duplicate/solve this.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload