Hi
I have an ascx control through which I am calling an aspx page using
the following command.
Page.ClientScri pt.RegisterStar tupScript(GetTy pe(), "test",
"window.open(.. .)");
Initially I just added a label controls on the page and it opened up
fine without any errors.
I then have added a button to the aspx page. When I double click on
the button in design mode, I am transferred to the codebehind class to
the button click event handler ( protected void Button1_Click(o bject
sender, EventArgs e){}).
Now when I run the application and get to the point where the ascx is
calling the aspx page I get an error saying that there doesn't exist a
Button1_Click method. I have checked the code behind and the method
exists there, I can get to the method by double clicking in design
mode and I have already tried removing and readding the button and
that didn't work either. I can't figure out what the issue is here and
any help regarding this would be greatly appreciated.
Thanks
Sumeet
I have an ascx control through which I am calling an aspx page using
the following command.
Page.ClientScri pt.RegisterStar tupScript(GetTy pe(), "test",
"window.open(.. .)");
Initially I just added a label controls on the page and it opened up
fine without any errors.
I then have added a button to the aspx page. When I double click on
the button in design mode, I am transferred to the codebehind class to
the button click event handler ( protected void Button1_Click(o bject
sender, EventArgs e){}).
Now when I run the application and get to the point where the ascx is
calling the aspx page I get an error saying that there doesn't exist a
Button1_Click method. I have checked the code behind and the method
exists there, I can get to the method by double clicking in design
mode and I have already tried removing and readding the button and
that didn't work either. I can't figure out what the issue is here and
any help regarding this would be greatly appreciated.
Thanks
Sumeet
Comment