Usually this is because your code-behind class (.aspx.vb) you declared in
the .aspx file is not 'compiled' or connected to the .aspx file correctly,
so the editor does not recognize you have a webform since it can't find the
code-behind class; sometimes it's not you, sometimes VS.NET has problems
changing code-behind file associations that you modify.
Make sure you are using the correct code-behind classname (namespace) when
you declared it at the top of the .aspx file.
Be sure to compile your solution.
Try closing all files in your VS.NET window. Then double-click on your
..aspx file and see if it opens like you'd expect, or if you get an error.
If all else fails, try closing VS.NET and reopening. I've had that help
sometimes when things get out of whack.
Microsoft MVP - ASP/ASP.NET
> It works. But when I add a button, I cannot move it on the webfrom. Why
> Chris Ma
> Hello Friends,
> I am using VB.NET in Visual Studio.net to program ASP.NET application.
> Somebody has written many .aspx files using Notepad. The language in
> files is VB.NET. I need to add and modify these files in my web
> application. For example, I need to add buttons and write the VB.net code
> for the buttons. When load them in Visual Studio.net, there are no
> forms. Is there a way to generate .aspx.vb forms for them? Must I modify
> the html code to modify them?
> Thank you very much!!!
> Chris Ma