472,364 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,364 software developers and data experts.

click events no longer work for controls within a Multipage contro

Hi,

I am using a Multipage control with ASP.Net 1.1. The events for controls
within the multipage are not getting fired. Any ideas why this would happen.
It was working fine before i added another usercontrol to the page.

Thanks

Oct 4 '07 #1
2 1365
On Oct 4, 3:52 am, Huzefa <Huz...@discussions.microsoft.comwrote:
Hi,

I am using a Multipage control with ASP.Net 1.1. The events for controls
within the multipage are not getting fired. Any ideas why this would happen.
It was working fine before i added another usercontrol to the page.

Thanks
Anytime I ran into this problem, it was because I was adding the User
Controls to the page in the Load event. If you add the User Controls
in the Load event my experience has shown me that events are not fired
beyond a couple generations (parent control -child control -child
control -etc.). So, make sure you add all User Controls in the Init
event of the page, not Load.

Also, if you are dynamically adding controls in the Init event, you
need to be sure to add the controls every time the page loads,
including postbacks. You can't have your User Control being loaded
inside an If Not Page.IsPostBack block. The controls need to be added
on Postbacks as well as initial loads.

If those don't help, try posting some sample code and I will try to
take a closer look.

-E

Oct 5 '07 #2
My issue turned out to be a bit different. The problem was when I am adding a
new control to the page, the designer is automatically removing the event
mappings from initializeComponent(). So I have to add the event maps for all
controls again. Any thoughts on why this happens.

"Elroyskimms" wrote:
On Oct 4, 3:52 am, Huzefa <Huz...@discussions.microsoft.comwrote:
Hi,

I am using a Multipage control with ASP.Net 1.1. The events for controls
within the multipage are not getting fired. Any ideas why this would happen.
It was working fine before i added another usercontrol to the page.

Thanks

Anytime I ran into this problem, it was because I was adding the User
Controls to the page in the Load event. If you add the User Controls
in the Load event my experience has shown me that events are not fired
beyond a couple generations (parent control -child control -child
control -etc.). So, make sure you add all User Controls in the Init
event of the page, not Load.

Also, if you are dynamically adding controls in the Init event, you
need to be sure to add the controls every time the page loads,
including postbacks. You can't have your User Control being loaded
inside an If Not Page.IsPostBack block. The controls need to be added
on Postbacks as well as initial loads.

If those don't help, try posting some sample code and I will try to
take a closer look.

-E

Oct 8 '07 #3

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

Similar topics

1
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...
1
by: sukanya s via .NET 247 | last post by:
(Type your message here) -------------------------------- From: sukanya s I have controls within a Multipage Web Control. I want to validate the Conrols within the Multipage control using...
0
by: dotnetkumar | last post by:
hi everybody, i am currently working with multipage and tabstrip controls. i want to disable the multipage and the controls inside it unless the user wants it to enable it. multipage.enable...
0
by: konox | last post by:
Hi, how can i create controls (text controls,dropdownlist...) on a MultiPage Web Control and Handle their Events on Design Mode and not on HTML mode? thanx in advance.
12
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
0
by: Kamen | last post by:
Hello there, I'm looking for an alternative control of the MultiPage from IE Web Controls, because these controls are not any more supported by Microsoft. I find this control very useful,...
18
by: eliss.carmine | last post by:
Is it possible to simulate a mouse click in the window I made (it's a Form), but not give it focus? I tried using WinAPI's mouseevent and SendMessage of WM_LBUTTONDOWN/WM_LBUTTONUP as suggested...
5
by: Amoril | last post by:
I've read quite a few different message on various boards and for some reason I'm still having trouble wrapping my head around this viewstate maintenance and trying to get these dynamically created...
0
by: =?Utf-8?B?Smlt?= | last post by:
I have an application that was built using asp.net 1.1. The application interviews the user with a parent form that loads a series of web user controls (.ascx files)dynamically with...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.