RhythmAddict112
Programmer
Hello . I've got a user created custom control with 4 drop down lists and a button. This control is on my main page, default3.aspx. What I'd like to do is fire an event on the main page (default3.aspx) when the button is clicked on the user control (DropMenu.ascx) This is what I've tried...
The error I get is "'Menu1.Button1' is inaccessible due to its protection level" The tricky thing is, in 2003 I would see my controls declared as such within my code
And thus, I could modify the protection level (make it public) In 2k5, there are no viewable control declartions...How do I solve this? Thanks!
Code:
private void InitializeComponent()
{
//Menu1 = my control, Button1 = the ID of the button within the control
Menu1.Button1.Click += new System.EventHandler(evalDdls);
The error I get is "'Menu1.Button1' is inaccessible due to its protection level" The tricky thing is, in 2003 I would see my controls declared as such within my code
Code:
protected System.Web.Ui.WebControls.Button button1;
And thus, I could modify the protection level (make it public) In 2k5, there are no viewable control declartions...How do I solve this? Thanks!