473,794 Members | 2,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

using User control within a Custom Control


I would like to use the AJAX ASP.NET Accordion Control.

Can I create a user control for the form and include this within a custom
control which inherits from a Pane of the Accordion control? I know that I
can create a user control and add it within the aspx file or dynamically to
a page, but can I do the same within a custom control so that I can reuse
this as a whole Pane. I wish to do this so that I can dynamically add new
panes with the control as the pane contents.
Thanks,

Richard

Sep 10 '08 #1
3 1355
I submitted this question a couple of weeks ago, and did not receive any
response. I basically want to know if I can create a user control and a
custom control, and in building the custom control include the user control
as a part of that control?

Thanks, Richard

"RichB" <ri***@communit y.nospamwrote in message
news:um******** ******@TK2MSFTN GP03.phx.gbl...
>
I would like to use the AJAX ASP.NET Accordion Control.

Can I create a user control for the form and include this within a custom
control which inherits from a Pane of the Accordion control? I know that I
can create a user control and add it within the aspx file or dynamically
to a page, but can I do the same within a custom control so that I can
reuse this as a whole Pane. I wish to do this so that I can dynamically
add new panes with the control as the pane contents.
Thanks,

Richard

Sep 22 '08 #2
try it and see !

"RichB" <ri***@communit y.nospamwrote in message
news:Oe******** ******@TK2MSFTN GP05.phx.gbl...
>I submitted this question a couple of weeks ago, and did not receive any
response. I basically want to know if I can create a user control and a
custom control, and in building the custom control include the user control
as a part of that control?

Thanks, Richard

"RichB" <ri***@communit y.nospamwrote in message
news:um******** ******@TK2MSFTN GP03.phx.gbl...
>>
I would like to use the AJAX ASP.NET Accordion Control.

Can I create a user control for the form and include this within a custom
control which inherits from a Pane of the Accordion control? I know that
I can create a user control and add it within the aspx file or
dynamically to a page, but can I do the same within a custom control so
that I can reuse this as a whole Pane. I wish to do this so that I can
dynamically add new panes with the control as the pane contents.
Thanks,

Richard


Sep 22 '08 #3
<shaking-head>
amazing - waiting a 'couple of weeks' for a spoon feeding when a simple
test project would have provided an answer in only a few minutes !
</shaking-head>


"gerry" <ge***@newsgrou p.nospamwrote in message
news:Ou******** ******@TK2MSFTN GP02.phx.gbl...
try it and see !

"RichB" <ri***@communit y.nospamwrote in message
news:Oe******** ******@TK2MSFTN GP05.phx.gbl...
>>I submitted this question a couple of weeks ago, and did not receive any
response. I basically want to know if I can create a user control and a
custom control, and in building the custom control include the user
control as a part of that control?

Thanks, Richard

"RichB" <ri***@communit y.nospamwrote in message
news:um******* *******@TK2MSFT NGP03.phx.gbl.. .
>>>
I would like to use the AJAX ASP.NET Accordion Control.

Can I create a user control for the form and include this within a
custom control which inherits from a Pane of the Accordion control? I
know that I can create a user control and add it within the aspx file or
dynamically to a page, but can I do the same within a custom control so
that I can reuse this as a whole Pane. I wish to do this so that I can
dynamically add new panes with the control as the pane contents.
Thanks,

Richard



Sep 22 '08 #4

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

Similar topics

4
2693
by: BBFrost | last post by:
We have a data entry application written within Framework 1.0 that contains 20+ custom user controls. The controls overlay each other so that only one custom control is visible at a time. What is the best way to keep the cursor from jumping to another non-visible control when the user tabs past the (currently designated) last control on the form. I've had some luck using the Leave event but the last visible control can change...
3
2563
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 is stored in its own DB table. a suppliers may add themselves to as many categories as required....
5
3161
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access the code variable that are supposed to be linked to the contained controls. It runs fines when everything is contained in a single web form project. What do I need to do to make it work from a class library?
2
3737
by: Barbara Alderton | last post by:
I setup some standard Required Field Validation controls and one Custom validation control on an ASP.NET page (within a user control) to validate text entry. I also setup a Summary Control to post all the messages to a message box (ShowMessageBox=true). The required field validation error messages show up in the summary just fine but I can't get the custom validation message to show up if invalid. So far I have the summary control...
12
2212
by: Joe | last post by:
Hello All: Do I have to use the LoadControl method of the Page to load a UserControl? I have a class which contains three methods (one public and two private). The class acts as a control server. It "serves" back the required control (either WebControl or UserControl) based on the contents of an xml file. The code in the webform places each control in a TableCell. My problem is that the control server works as far as returning the...
2
1880
by: J R M | last post by:
I've developed a custom control (it's basically a drop-down list and then a couple of textboxes to include meta-data for the selection) that I'm embedding into another custom control (the idea is to allow a dynamic number of control1 to appear in control2). Everything renders correctly, however I could never retrieve data on postback from my embedded controls. Upon closer inspection, all of the embedded controls output without any "name"...
3
1883
by: Jonathan Wood | last post by:
I could really use some help on this. First of all, I want to create a Web control where I render the control completely from scratch based on information from a database. In the book "Beginning ASP.NET 2.0 in C# 2005", it provides an example of doing this, which is declared as: public class ConfigurableRepeater : WebControl.
6
11082
by: | last post by:
I have made some user controls with custom properties. I can set those properties on instances of my user controls, and I have programmed my user control to do useful visual things in response to how those properties are set. I want to be able to do two other things: a) add User control instances to my page, filling in the place of placeholder controls, and b) programmatically setting custom properties on those dynamically spawned...
2
3010
by: User | last post by:
Hi, I have a custom user control. How do I write the script in a way which i can import custom namespace within the custom control? Please advise.. Thanks! mycontrl.ascx <script language=vb runat=server>
0
9519
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10213
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9037
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6779
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3
2920
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.