473,408 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

User Controls Event Lifecycle

I have a user control made up of a couple of web controls.

I want to be able to set the SkinId on the web controls at run time. To
do this I need to set the skin Id in or before the PreInit event.
However, I can see no way of hooking in to any events within a user
control prior to the OnInit event - which is too late for setting a
SkinID.

Any help greatly appreciated. Thanks, Jonny

Nov 19 '05 #1
2 4075
See:

http://msdn.microsoft.com/library/de...nLifecycle.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Jonny" <jo********@tiscali.co.uk> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
I have a user control made up of a couple of web controls.

I want to be able to set the SkinId on the web controls at run time. To
do this I need to set the skin Id in or before the PreInit event.
However, I can see no way of hooking in to any events within a user
control prior to the OnInit event - which is too late for setting a
SkinID.

Any help greatly appreciated. Thanks, Jonny

Nov 19 '05 #2
Only the Page has a PreInit event. You could set the SkinID from the
page object's PreInit, but I'm not sure what you are trying to
ultimately achieve.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 13 Sep 2005 14:36:31 -0700, "Jonny" <jo********@tiscali.co.uk>
wrote:
I have a user control made up of a couple of web controls.

I want to be able to set the SkinId on the web controls at run time. To
do this I need to set the skin Id in or before the PreInit event.
However, I can see no way of hooking in to any events within a user
control prior to the OnInit event - which is too late for setting a
SkinID.

Any help greatly appreciated. Thanks, Jonny


Nov 19 '05 #3

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

Similar topics

1
by: Charles A. Lackman | last post by:
Hello, I have created a User Control within Visual Studio and it contains a button that allows the user to querry a database. I dynamically add additional controls to the page based on the...
0
by: Johannes Eble | last post by:
Hallo allerseits, ich habe eine Webform, die u.a. zwei User Controls enthaelt, sagen wir usrA.ascx und usrB.ascx. usrB.ascx enthaelt wiederrum ein User Control usrBB.ascx. usrA.ascx enthaelt...
1
by: Robert Howells | last post by:
Perhaps I'm just too new at this to pull it off, or perhaps it's just bad architecture. I'd appreciate some feedback on the the wisdom (or lack thereof) in attempting the following: I'm not new...
1
by: Nick Stansbury | last post by:
Hi, Is there any way to cause a page to completely resubmit itself from the server side? I have an array of user controls that, in the event handler of the user control itself, add new user...
6
by: Jim | last post by:
I have a user control that I am dynamically loading into an aspx page. When I fill out the text boxes and submit the form using a command button on the aspx page I lose the value from the user...
7
by: Mr Newbie | last post by:
Hi There, Here I am messing about with User Controls and I seem to have a conundrum on my hands which I'm sure you chaps will unravel for me in the blink of an eye.
7
by: David Lozzi | last post by:
Howdy, I have a usercontrol in my aspx page and when the page loads, I send it some property values based on the data displayed. I am sending it to a public property like below. However the...
1
by: Bob Rock | last post by:
Hello, I'm new to ASP.NET and I've been looking into the topic of dynamically loading (typically accomplished with a LoadControl followed by a MyControl.Controls.Add()) both user controls and...
0
by: Ken Fine | last post by:
This supplements a question I asked earlier, about acting on ASP.NET controls of a particular type. I'm wondering how to loop through all controls on a page and manipulate user controls with...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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...
0
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...
0
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
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...

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.