Problems using UserControl
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hallo everybody, I am using using a Custom control inside an aspx page and such user control includes a public property, so I need to access from the aspx.cs to the object created and stablish a value for the public property, but I have problem because the page doesn't recognize the object, the register data is: <%@ Register TagPrefix="Data" TagName="Navegador" Src="~/Controles_Usuario/Navegador.ascx" %> and the inclusion sentence: later from the aspx.cs code I try to access to NV1.Property1 = 1; and it yields an error telling that the page doesn't recognize NV1 and if I define it with protected Navegador NV1, the error is JUST REDEFINED So Please where is the error, because I find this kind of errors each time when I use Custom Controls.