Lily,
Let's address a bigger issue. I think you are missing a fundamental aspect of ASP.NET. You can't load a web form from another web form. That's not how ASP.NET works. The web forms are created when a page request is received. In order to "load" another web form, you have to direct the client's browser to a different page.
This doesn't really explain why you are getting the error you have, but the point is that you can not do what it seems you are trying to do so the error is moot.
|