Currently I have a small form that uses a asp:linkbutton to submit and send out an email.
I want to instead display a lightbox saying “Thank you for your submission” when the user clicks the form rather than a full post back.
What is the best solution?
You will need to intercept the event to prevent the form from posting, and then calling your lightbox. Something like this:
then on the server side:
crate a new Handler myHandler.ashx that would look like this: