see07
Regular
Hello everybody:
Are there somebody here able to help me?
Im using a WebUserControl embedded into a WebForm, I need when a user clicks a button placed into the WebUserControl be launched the click event of another button placed into the WebForm. How can I do this?
I attempted launch the click event from WebUserControl thus
Gestion.ConsultaIntra.Peticion.cmdButton1_Click(Gestion.ConsultaIntra.Peticion.Button1, null);
In WebForm I have:
namespace Gestion.ConsultaIntra
public class Peticion : System.Web.UI.Page
protected System.Web.UI.WebControls.Button Button1;
public void Button1_Click(object sender, System.EventArgs e)
{
}
When I compile the project send the error: CS0122 Its not accessible due its protection level.
What is wrong with this?
Would you be able to help me?
Ill appreciate your suggestions
A.L.
Are there somebody here able to help me?
Im using a WebUserControl embedded into a WebForm, I need when a user clicks a button placed into the WebUserControl be launched the click event of another button placed into the WebForm. How can I do this?
I attempted launch the click event from WebUserControl thus
Gestion.ConsultaIntra.Peticion.cmdButton1_Click(Gestion.ConsultaIntra.Peticion.Button1, null);
In WebForm I have:
namespace Gestion.ConsultaIntra
public class Peticion : System.Web.UI.Page
protected System.Web.UI.WebControls.Button Button1;
public void Button1_Click(object sender, System.EventArgs e)
{
}
When I compile the project send the error: CS0122 Its not accessible due its protection level.
What is wrong with this?
Would you be able to help me?
Ill appreciate your suggestions
A.L.