Jul 24, 2013 05:33 PM|AidyF|LINK
in your code behind. You need to take time to first understand how web technology and asp.net works.
What you have to do is put the code you want to run in a seperate function. You put a confirm button on your page and you attack a click handler to it. Pushing the button posts the page back to your server and the click handler runs, and you then run the
rest of your code. Basically it is a two-stage process. You generate a button in your normal page load, then you react to that button being clicked and run your code that needs run when the user confirms.
You really have to start from the very beginning and go through a book or online tutorials about how asp.net works as you haven't got the fundamentals understood yet, and without understanding those you will find it hard to code your website.