Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For 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
 
Old January 11th, 2004, 10:23 AM
Registered User
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default events problem

my Web controls can't fire their events .

it worked before but somehow it stopped.

this relays to any aspx/aspx.vb page.



 
Old January 12th, 2004, 09:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Can you post your code?

Can you view the aspx page?

 
Old January 23rd, 2004, 07:08 AM
Authorized User
 
Join Date: Jul 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alex_read
Default

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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with events not firing Keith Smith Excel VBA 2 August 3rd, 2016 05:39 PM
Events bschleusner C# 2005 2 February 26th, 2007 05:25 AM
Propagate events. marclena General .NET 1 February 12th, 2005 02:59 PM
DataConnector Events codeMonkey76 .NET Framework 2.0 0 February 4th, 2005 12:50 AM
help with Events egiblock JSP Basics 0 October 6th, 2003 11:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.