I have an aspx page that have a "Register" directive to two usercontrol called rptMaster.ascx and rptDetail.ascx. I'm trying to set up a Master-Detail relationship and wish for the rptMaster.ascx to trigger and event from a dropdownlist and for the rptDetail to be listening for DropDownList event.
I believe I have gotten the events part okay with help from this articel http://codeproject.com/aspnet/Page_UserControl.asp but my declaration for a private statement to my rptMaster class is producing an error.
I'm using beta 2 of asp.net and I 'm having trouble getting a reference TO rptMaster FROM rptDetail.
rptMaster.ascx.cs :
namespace Meteora
{
public partial class rptMaster_ascx : System.Web.UI.UserControl, IBoroughInterface
{
public event CommandEventHandler ddlSelectionIndexChanged;
rptDetail.ascx.cs
namespace Meteora
{
public partial class rptDetails_ascx : System.Web.UI.UserControl
{
protected rptMaster_ascx rp;
I will get this error " The type or namespace name 'rptMaster_ascx' could not be found (are you missing a using directive or an assembly reference?)"
I don't wish to bore anyone with too much code so kept it simple but if you need more i will provide. I know its something basic that i'm missing.
Thanks, Gloudon