exposing the methods of your dynamically created usercontrol
Hi, I'm completely new to all this, so my apologies if this may sounds like a stupid, half-a-zillion times asked question.
BUT.....
This is what I'm trying to do. I have a main aspx.net page that places one of my usercontrols dynamically on the page.
The number of controls being added depends on the number of records in a database. Since I use the usercontrol to display the data in the database(in the form of a table), I need set-methods to send the data to the control.
Unfortunately, the main aspx.net page doesn't seem to recognize the property, and keeps telling me: "'Titel' is not a member of 'System.Web.UI.UserControl'."
--------------------------------------------------------------------------------------------
This is the code of the main aspx.net page (sarcastically, named simple4.aspx):
---------------------------------------------------------------------------------------------
<%@page explicit="true" language="vb" debug="true" %>
<%@import namespace="System.data" %>
<%@import namespace="System.data.oledb"%>
<%@import namespace="System.Web.UI"%>
<%@ Register TagPrefix="aspfd" tagname="simple3" src="simple3.ascx" %>
-----------------------------------------------------
This is my (simplified) uc named simple3.ascx
-----------------------------------------------------
<%@ Control explicit="true" language="vb" debug="true" %>
Thx for any help.
Greetz