Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Designer files rewrite custom control when markup changed.

Reply
Thread Tools

Designer files rewrite custom control when markup changed.

 
 
Joe
Guest
Posts: n/a
 
      05-12-2008
asp.net 2.0

I recently converted a website project to a WAP. I the process I have
moved our composite controls into their own subfolder. I have removed
the Register directives from the individual pages to the web.config.

The problem is every time I check out a page from SS and change the
markup the partial page file is rewritten. All my custom user
controls are changed to type UserControl.

the file starts like this:
private MyCustomControl customControl1;

Changes to this:
private UserControl customControl1;

This causes compile errors because of custom properties and events.
The aspx file does not have any errors. It recognizes the user
controls. The custom tags show up in the intellisense.

How can I get it to stop rewritting the partial class with the wrong
types?
 
Reply With Quote
 
 
 
 
Joe
Guest
Posts: n/a
 
      05-13-2008
A good answer I got from another source.

just put the declarations in the codebehind file instead of the
designer file.
 
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
Designer Property Serialization -- Sycning inner properties to designer property window Alexander Higgins ASP .Net Building Controls 3 07-30-2007 09:09 PM
Sharepoint Designer/ Expression Web Designer : adding item in toolbox ? Steve B. ASP .Net 4 06-01-2007 04:29 AM
How do I get a custom Control Designer to write to the HTML of my control? Don ASP .Net Web Controls 1 07-18-2005 11:16 PM
How do I get a custom Control Designer to write to the HTML of my control? Don ASP .Net Building Controls 1 07-18-2005 11:16 PM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57