locked
Templated User Control Design View fustration ; ) RRS feed

  • Question

  • User1516241311 posted

    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: " http://blogs.infosupport.com/blogs/wouterv/archive/2005/09/15/1144.aspx "

    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.

     

    Thursday, April 16, 2009 11:49 AM

Answers