jakecigar & watusiware,
Thank you for your assistance. The code that Jake posted works. Now I'd like to reference my local js file instead of the one out on the jquery website. Here is what I have that is not working. I've added the JQuery folder and the 3 files in it to my project. Did I not download the correct files?
<%--<script src="
https://code.jquery.com/jquery-3.1.1.min.js"></script>--%> <script src="~/JQuery/jquery-3.1.1.js"></script>
<script>
$(function() { // and make the script wait until the page is ready.
$("#form1").keyup(function(event) {
if (event.keyCode == 13) {
$("#ExportToExcelButton").click();
}
});
})
</script>