ASP.NET 1.0 and 1.1 BasicsASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Just be aware of the name of the button. If the form is not the default form name (Form1) or the button is actually part of a user control you'll need to use another method for getting the name of the button. I try to be consistant and use the server control's .ClientID property to get the ASP.NET generated client-side ID for the control and then use the getElementById() method in the javascript. As a result you'll have to manipulate the client-side javascript with server code.