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.
0 · ·