ASP.NET 1.0 and 1.1 ProfessionalFor advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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
1) make sure the yellow line at the top of the html designer page reads the right entry for the Codebehind property.
2) Make sure each of the controls are server controls with the runat method set correctly:
<asp:button Runat="Server"
3) Some controls, such as the listbox, require an AutoPostBack property set on the tag also to make some of their events fire:
<asp:listbox AutoPostBack="True"
4) Make sure the control resides in the " Web Form Designer Generated Code " region at the top of the code window, and has the withevents keyword assigned beside it.
Protected WithEvents listbox1 As System.Web.UI.WebControls.ListBox