473,385 Members | 1,569 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,385 software developers and data experts.

Custom Templated CompositeControl/CompositeControlDesigner

Hi,

Myself and a colleague are attempting to mimic the custom template
functionality of the ASP.Net 2 Login control. Essentially, we would like to
have the ability within our CompositeControl/CompositeControlDesigner to
have and Action or Verb in the control's smart tag titled 'Convert to
Template' which actually converts the whole control, including it's child
controls to templated mode.

Do this in the Login control, and you'll see the source change to include a
tag with inner html made up of a layout table, and child textbox/button
controls (along with labels and validators. You can then edit the html as
you see fit (eg. convert to div tag layout), but if you remove or rename the
key child controls you'll get a runtime error where the LoginControl is
attempting a FindControl.

Ideally, we would like an example to achieve this, say with a textbox and a
button - can anyone help?

We have been searching for a solution that matches this, but a full trawl of
the net only reveals solutions which are close but not exactly the full
convert-to-template functionality of the login control. For example
http://forums.asp.net/thread/1109037.aspx - to me, this solution does not
match our needs, it is more of a way of enabling templates within your
control that the developer can add to.

I've posted this question to these key custom control guys: Nikhil Kothari,
Andy Smith and Mickey Williams. Does anyone know anyone else I should ask?

Cheers,
Andy
Jul 5 '06 #1
1 3213
I've posted this question to these key custom control guys: Nikhil Kothari,
Andy Smith and Mickey Williams. Does anyone know anyone else I should ask?
How about asking Polita Paulus?
http://summerschool.code40.ro/blogs/.../06/22/28.aspx

Regards,
Andy

Andrew Clancy wrote:
Hi,

Myself and a colleague are attempting to mimic the custom template
functionality of the ASP.Net 2 Login control. Essentially, we would like to
have the ability within our CompositeControl/CompositeControlDesigner to
have and Action or Verb in the control's smart tag titled 'Convert to
Template' which actually converts the whole control, including it's child
controls to templated mode.

Do this in the Login control, and you'll see the source change to include a
tag with inner html made up of a layout table, and child textbox/button
controls (along with labels and validators. You can then edit the html as
you see fit (eg. convert to div tag layout), but if you remove or rename the
key child controls you'll get a runtime error where the LoginControl is
attempting a FindControl.

Ideally, we would like an example to achieve this, say with a textbox and a
button - can anyone help?

We have been searching for a solution that matches this, but a full trawl of
the net only reveals solutions which are close but not exactly the full
convert-to-template functionality of the login control. For example
http://forums.asp.net/thread/1109037.aspx - to me, this solution does not
match our needs, it is more of a way of enabling templates within your
control that the developer can add to.

I've posted this question to these key custom control guys: Nikhil Kothari,
Andy Smith and Mickey Williams. Does anyone know anyone else I should ask?

Cheers,
Andy
Jul 5 '06 #2

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

Similar topics

0
by: Lloyd Dupont | last post by:
I'm trying to create a templated custom control which hold a collection of something else in his property 'Panels' when this property is of type ArrayList it parse ok. however when I try to use...
2
by: Earl Teigrob | last post by:
I have created a simple custom control that uses a table to create space around its contents. The code in the aspx page is show below. My problem is that the controls within the template can not be...
0
by: Earl Teigrob | last post by:
I have created a templated custom control that simply creates a spacing table around other objects. This control works fine for most uses but when I add it inside the ItemTemplate of a DataGrid...
11
by: Nick Gilbert | last post by:
Hi, How can I create a custom control which will wrap its content in a header and footer? eg: Is it possible to create a .NET user control which can surround other controls? eg:...
2
by: Olorin | last post by:
I'm encountering some weird behavior with the ClientID property. Let's see if I can give you enough info and if anyone has ideas/suggestions. I'm working in ASP.NET 2.0. I have a Web Project with...
1
by: Veerle | last post by:
Hi, I use the infragistics tabcontrol on several pages of my application, that looks like this: <igtab:UltraWebTab ID="MyTabPage" runat="server"> <Tabs> <igtab:Tab Key="Tab1" Text="Title for...
0
by: Steve Richter | last post by:
my composite control does not render correctly the 2nd time it is made visible. When I change the base class from CompositeControl to WebControl, the control works as it should. public class...
0
by: Murdz | last post by:
Hello. I have created a set of custom controls to spit out XML for a IVVR platform. This all works well; however there are instances I want to loop through an iteration spitting out chucks of XML...
6
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... Tried posting this on Build Controls but then saw that's a pretty slow group... Kind of a typical request from product management - they want to be able to swap in different 3rd party...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.