Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Custom Templated CompositeControl/CompositeControlDesigner

Reply
Thread Tools

Custom Templated CompositeControl/CompositeControlDesigner

 
 
Andrew Clancy
Guest
Posts: n/a
 
      07-05-2006
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


 
Reply With Quote
 
 
 
 
CaffieneRush@gmail.com
Guest
Posts: n/a
 
      07-05-2006
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling templated member of templated object david@sunlightd.com C++ 1 06-22-2007 05:13 PM
templated function as parameter of another templated function Amadeus W. M. C++ 2 07-04-2006 09:59 PM
ASP.NET Templated User Controls - Limit child controls allowable within a templated control JohnyStyles@gmail.com ASP .Net 0 05-29-2006 06:00 PM
Subtypes of templated types (in templated functions) Marijn C++ 5 02-13-2004 09:50 AM
implementing a templated struct within a templated struct RA Scheltema C++ 3 01-06-2004 11:25 AM



Advertisments