Designer file getting wrongly modified - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Designer file getting wrongly modified

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 -


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.
Sign In or Register to comment.