Last post Apr 17, 2009 06:25 AM by kalerosky
Apr 16, 2009 11:49 AM|kalerosky|LINK
Hello everyone! I'm just registered and this will be my first post.
Ok, surely all of you have readed this kind of question so many times before (I guess), SORRY: but after four days of self training about User Controls, ITemplates and ControlDesigner I still not have my final purpose.
Well, i've writed a class for a templated user control, but not like a Repeater, is ITemplated used in the way that it's in a LoginView control: Templates that can be switches... It's something like it's explained in this web: "
Ok, what's making me go mental is the next: Everything go fine when I do the second part of the tutorial (
http://blogs.infosupport.com/blogs/wouterv/archive/2005/09/15/1145.aspx ). In my "design view" of my VS2005 I can change my Templates and edit them and all of that stuff, but when I'm done and click on "End Template Editing" from the context menu and I
go to de aspx code, my templates designed in the "design view" are gone!!!
I also tried with the example code in "
http://msdn.microsoft.com/es-es/library/system.web.ui.design.templategroupcollection(VS.80).aspx " and I obtained the same error: when click on "End Template Editing" my aspx code have no template information.
So, anyone knows about it ? MANY THANKS!
PS: Sorry about my english, I'm spanish ;)
PPS: I don't put my code because is practically the same from the tutorial that I've mencioned.
ITemplate ControlDesigner TemplateGroupCollection
Apr 17, 2009 06:25 AM|kalerosky|LINK
Well ok, the fault was that I was trying to make the class through a "blablabla : UserControl" directly, not like is now, first one class for a "CompositeControl" and another one for the "WebControl" @_@ and I've put an "Owner Class" for "I do not really
what, but seems to work". I've noticed that thanks to the page:
http://docentes.uacj.mx/jpaz/WebAppsWeb/dv_aspnetctrlauth_web/html/986f63b8-6b50-42b9-a62d-a2f13cafa88b.htm (sorry, the web is in spanish)
Thanks for the pople that has (at least) read my post ; )