473,503 Members | 13,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Dynamic User Control

I created a composite control that consist of a html input, drop down, and
RadioButtonList.

I want the radioButtonList set with autopostback = true

When I set this to true I have a javascript error on the page. I wrote no
javascript myself.

Would this have something to do with controls needing to be created on every
postback? I am not too familiar with that but have been reading up on it.

Currently I reload my composite control on every postback in the page_load
event. The page will render but on the slectedindexchanged event of the
radiobuttonlist does not fire.

Can someone please explain how to wire everything up correctly.

I have read on CreateChildControls, EnsureChildControls but don't quite
understand there use.

Any idea's

Thanks
Nov 18 '05 #1
3 1257
Hi,

Are you creating your controls in the CreateChildControls method? Does you
control's Controls property contain the EnsureChildControls() call?

--
Ben
http://bitarray.co.uk/ben
"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:Op**************@TK2MSFTNGP12.phx.gbl...
I created a composite control that consist of a html input, drop down, and
RadioButtonList.

I want the radioButtonList set with autopostback = true

When I set this to true I have a javascript error on the page. I wrote no
javascript myself.

Would this have something to do with controls needing to be created on
every
postback? I am not too familiar with that but have been reading up on it.

Currently I reload my composite control on every postback in the page_load
event. The page will render but on the slectedindexchanged event of the
radiobuttonlist does not fire.

Can someone please explain how to wire everything up correctly.

I have read on CreateChildControls, EnsureChildControls but don't quite
understand there use.

Any idea's

Thanks

Nov 18 '05 #2
I am not dynamically creating any individual controls. I am only
dynamically loading a composite control.

Thanks
"Ben Lovell" <sp**@benlovell.co.uk> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl...
Hi,

Are you creating your controls in the CreateChildControls method? Does you
control's Controls property contain the EnsureChildControls() call?

--
Ben
http://bitarray.co.uk/ben
"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:Op**************@TK2MSFTNGP12.phx.gbl...
I created a composite control that consist of a html input, drop down, and RadioButtonList.

I want the radioButtonList set with autopostback = true

When I set this to true I have a javascript error on the page. I wrote no javascript myself.

Would this have something to do with controls needing to be created on
every
postback? I am not too familiar with that but have been reading up on it.
Currently I reload my composite control on every postback in the page_load event. The page will render but on the slectedindexchanged event of the
radiobuttonlist does not fire.

Can someone please explain how to wire everything up correctly.

I have read on CreateChildControls, EnsureChildControls but don't quite
understand there use.

Any idea's

Thanks


Nov 18 '05 #3
Could you possibly post the source for your control?
--
Ben
http://bitarray.co.uk/ben

"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
I am not dynamically creating any individual controls. I am only
dynamically loading a composite control.

Thanks
"Ben Lovell" <sp**@benlovell.co.uk> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl...
Hi,

Are you creating your controls in the CreateChildControls method? Does
you
control's Controls property contain the EnsureChildControls() call?

--
Ben
http://bitarray.co.uk/ben
"Brian Shannon" <bs******@lbrspec.com> wrote in message
news:Op**************@TK2MSFTNGP12.phx.gbl...
>I created a composite control that consist of a html input, drop down, and > RadioButtonList.
>
> I want the radioButtonList set with autopostback = true
>
> When I set this to true I have a javascript error on the page. I wrote no > javascript myself.
>
> Would this have something to do with controls needing to be created on
> every
> postback? I am not too familiar with that but have been reading up on it. >
> Currently I reload my composite control on every postback in the page_load > event. The page will render but on the slectedindexchanged event of
> the
> radiobuttonlist does not fire.
>
> Can someone please explain how to wire everything up correctly.
>
> I have read on CreateChildControls, EnsureChildControls but don't quite
> understand there use.
>
> Any idea's
>
> Thanks
>
>



Nov 18 '05 #4

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

Similar topics

2
5297
by: theComputer7 | last post by:
I cut down the code to make this half way understandable... I have read Data Grid girls caution about over use of dynamic controls. I truly believe what I am doing requires dynamically inserted...
1
7536
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...
5
2388
by: mytestemailaccount | last post by:
Hi, Hope you can help. I am relatively new to all this but would appreciate the groups help. The scenario: I am c# and asp.net to create a web application. The web page contains a user...
1
2147
by: Steve Booth | last post by:
I have a web form containing a button that when selected adds a user control to a place holder. The user control contains a button. The first time the user control is added the contained button...
1
4560
by: Stanley Cheung | last post by:
Dear all, how can I pass a parameter to dynamic user control? As I know we can pass parameter into traditional user control. e.g: add pageid into user control and write a property from user...
9
3608
by: Tarscher | last post by:
hi all, I have this seemingly simple problem. I have lost a lot of time on it though. When a user selects a value from a dropdownlist (static control) a dynamic control is generated. I have...
0
5272
by: Eniac | last post by:
Hi, I've been working on a custom user control that needs to be modified and the validation is causing me headaches. The control used to generate a table of 4 rows x 7 columns to display all...
4
51601
Frinavale
by: Frinavale | last post by:
Introduction Sometimes, when developing web applications, we need to be able to dynamically load controls based on user selections. The following article describes a simple scenario where TextBox...
3
4345
balabaster
by: balabaster | last post by:
I've got a user control that builds a table of dynamic data based on a :LINQ class holding the data. The data is loaded using the LoadData(DataInstance) method. The table it builds contains a...
2
4427
Frinavale
by: Frinavale | last post by:
I've created a ASP.NET control that displays a "book" of schedules. It dynamically displays scheduling times and allows the user to page through the schedules. It also lets the user edit the...
0
7098
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...
0
7298
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,...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
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...
1
5026
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...
0
1526
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 ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
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...

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.