473,542 Members | 9,296 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Control Event not firing

Hi,

I've created a webControl with a list of buttons. Each of the buttons has a
CommandEventHandler attached but when they are clicked the corresponding
postback does not enter the associated event mehod, Can anyone help please.

Jim
Dec 2 '05 #1
4 1571
Jim,

You have to post an example, as your scenario (while vague) doesn't
indicate that you are doing anything wrong.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jimmy Jazz" <Ji*******@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
Hi,

I've created a webControl with a list of buttons. Each of the buttons has
a
CommandEventHandler attached but when they are clicked the corresponding
postback does not enter the associated event mehod, Can anyone help
please.

Jim

Dec 2 '05 #2
Hi,

Unless he is creating the control dynamically, if so the controls have to be
recreated in the postback
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uB**************@TK2MSFTNGP14.phx.gbl...
Jim,

You have to post an example, as your scenario (while vague) doesn't
indicate that you are doing anything wrong.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jimmy Jazz" <Ji*******@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
Hi,

I've created a webControl with a list of buttons. Each of the buttons has
a
CommandEventHandler attached but when they are clicked the corresponding
postback does not enter the associated event mehod, Can anyone help
please.

Jim


Dec 2 '05 #3
Hi,

Yes I am creating them dynamically. How do you mean create them in the
postback do you have an example?

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Unless he is creating the control dynamically, if so the controls have to be
recreated in the postback
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uB**************@TK2MSFTNGP14.phx.gbl...
Jim,

You have to post an example, as your scenario (while vague) doesn't
indicate that you are doing anything wrong.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jimmy Jazz" <Ji*******@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
Hi,

I've created a webControl with a list of buttons. Each of the buttons has
a
CommandEventHandler attached but when they are clicked the corresponding
postback does not enter the associated event mehod, Can anyone help
please.

Jim



Dec 2 '05 #4
Heres a couple of links you should look at.
http://msdn.microsoft.com/library/de...nlifecycle.asp
and http://weblogs.asp.net/vga/archive/2.../11/23498.aspx .

My guess is that you should focus on page load() I think that is what you
are missing.

Hth

Denis

"Jimmy Jazz" <Ji*******@discussions.microsoft.com> wrote in message
news:A0**********************************@microsof t.com...
Hi,

Yes I am creating them dynamically. How do you mean create them in the
postback do you have an example?

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

Unless he is creating the control dynamically, if so the controls have to be recreated in the postback
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:uB**************@TK2MSFTNGP14.phx.gbl...
Jim,

You have to post an example, as your scenario (while vague) doesn't
indicate that you are doing anything wrong.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jimmy Jazz" <Ji*******@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
> Hi,
>
> I've created a webControl with a list of buttons. Each of the buttons has> a
> CommandEventHandler attached but when they are clicked the corresponding> postback does not enter the associated event mehod, Can anyone help
> please.
>
> Jim


Dec 2 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
21972
by: Pete | last post by:
I have some funky form/event behavior. Access 97. Split frontend/backend, using Access security. I have the same behavior (or lack of behavior) for the pag_Click() event of two separate pages on different menu forms. Details: frmTRNMenu is the main menu of the application. It uses tabbed pages to logically separate menu items. The...
3
2550
by: Tim Thomas | last post by:
Hi, I am very new to .NET and am in the process of building my first web application. I will briefly describe what i am trying to achieve: I have a system where suppliers register their details, their locations, and then add themselves to categories. Each category requires additional info from the suppliers, this additional category info...
1
7545
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a dropdown in UC1 _________________________ 1) MainPage_Load 2) User Control_1 Load
1
8140
by: Earl Teigrob | last post by:
PROBLEM: When a user control is loaded into a PlaceHolder control more than once, the events do not fire on the first click of a control on the dynamically loaded user control. In other words, the first time the control is dynamically loaded, everything works fine. After that, if the control is loaded again from the page button event handler,...
2
9836
by: ~~~ .NET Ed ~~~ | last post by:
I have a problem (don't we all?). I have a web form with multiple modules, some of these modules have an ASP.NET (server run) button. OK, now I have UserControlX which has one such button (say Login). In that user control I defined both the Command and Click events for the button and placed a break point on it (in addition to traces). This...
0
909
by: scotprince | last post by:
Hi, I am hoping someone here can help. I have one custom control called "MyButton". On another custom control (CC2) I dynamically create a table and add the "MyButton" control to a cell or cells depending on what happens on the web form. Then I embed CC2 onto a web form and everything compiles and runs. I get the custom button(s)...
0
2332
by: Mike | last post by:
Hi. I can't figure out why a button's click event is not firing in a templated control I've created (first time I've tried creating one). Please can someone help? On a point of lesser importance, how can I get the designer to realise that my control can contain markup? This is all ASP.Net v 2.0 This is my default.aspx: Below is the...
4
4178
by: TS | last post by:
I am creating a User control and i create some dynamic controls in the init handler. one of the controls is a custom validator which i assign a serverValidate event handler. I usally always do my controls as custom server controls and don't understand why this event won't fire. I figured if the creation of the control was in the init, it...
4
2757
by: Dan Soendergaard | last post by:
Hello fellow developers, I've created a control which derives from the .NET TextBox. I then wanted to add two events to the new control, so I added the following to the control code: public event EventHandler InvalidValueMatched; public event EventHandler ValidValueMatched; But when one of the events is raised I get this exception:
2
6347
by: tshad | last post by:
In VS 2008, I have 2 pages, one aspx page and one ascx page. The PreRender event is not firing on the Contol page. The aspx page starts out: <%@ Page Language="VB" AutoEventWireup="true" Trace="true" CodeFile="TakeSurveyTest.aspx.vb" Inherits="TakeSurveyTest" %> And the ascx page starts out:
0
7322
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7567
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7665
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5862
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5239
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4878
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1790
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.