<%@ MasterType virtualPath="~/EAD_EditGrid.master"%> not recognised
Hi
in the users.aspx page there is the following line of code
<%@ MasterType virtualPath="~/EAD_EditGrid.master"%> which should allow to recognize the events defined in the master page.
these two methods allow the child page to catch the event and are defined in the master page
public delegate void ButtonClickedHandler(object sender, EventArgs e);
public event ButtonClickedHandler AddButton_Click;
unfortunately in the user page code behind file the following line of code is not read appropriately
Master.AddButton_Click += new EAD_EditGrid.ButtonClickedHandler(Master_AddButton _Click);
The AddButton_Click is underlined in red as welll as the EAD_EditGrid which is the master page.
i am using Visual Studio 2010 with NET framework 3.5.
Does anyone know why is this happening?
thank you for your support.
MattHoff
|