Active Server Pages

Moderators: None (Apply to moderate this forum)
Number of threads: 1751
Number of posts: 4473

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Designer file getting wrongly modified Posted by Pinbanstar on 16 Jul 2010 at 1:54 AM
I have an user control "Endorsements.ascx". An object of it is created in an aspx page.
It is registered like -
<%@ Register TagPrefix="uc2" TagName="Endorsements" Src="../Endorsements.ascx" %>

and instantiated like -
<uc2:Endorsements id="Endorsement" runat="server">
</uc2:Endorsements>
In the designer file,
it is declared as
Protected WithEvents Endorsement As Global.AgencyLink.Endorsements

but whenever a change in the aspx file is made, it changes to-
Protected WithEvents Endorsement As Global.System.Web.UI.UserControl

Every time, I have to manually fix it. Please help me out with some permanent solution.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.