aspx files

  • Thread starter Thread starter Chuck Bowling
  • Start date Start date
C

Chuck Bowling

I'm doing something wrong... not quite sure what...

I got a basic web forms page built and running inside the IDE per
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vbcon/html/vbwlkWalkthroughCr
eatingBasicWebFormsPage.htm

The project works exactly as it should inside VS.NET however, if i try to
click on the WebForm1.aspx file in \\localhost\WebApplication1 it launches
the .aspx file in the IDE but won't launch a separate browser window.

I can get the page to launch in a browser if I link to it from an HTML page
but if i do i can only see the Text Field and Label HTML server controls. I
can't see the Button1 Web server control.

Can someone help me figure out what I'm doing wrong?
 
Is WebApplication1 the project file or the name of a Form? If it's the
former then I would have thought that would have been expected behavior
 
WebApplication1 is the name of the folder that holds the file WebForm1.aspx

When I open the folder with the folder browser and click on the
WebForm1.aspx file it opens in the IDE instead of opening in an Internet
Browser window.
 
When you say Folder browser, do you mean Windows Explorer or do you mean
maybe the Solution Explorer that is part of VS.NET or something completely
different?
 
windows explorer

nevin said:
When you say Folder browser, do you mean Windows Explorer or do you mean
maybe the Solution Explorer that is part of VS.NET or something completely
different?



ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vbcon/html/vbwlkWalkthroughCr
 
Chuck,
from your post it seems we might be confusing the difference between making
an HTTP request for the page vs. clicking on the page in Windows Explorer.

If you know the HTTP URL of the page, such as
http://localhost/WebApplication1/Webform1.aspx
this should send the page request through IIS, which apparently is what you
are looking for. If you just click on the page in Explorer view, it's going
to LOAD in the default application which in this case would be Visual Studio
..NET.
Does this help?
--Peter
 
Ok, so *.html files will load to the default browser but *.aspx files are
set by default to load into VS.

Yes, I guess it does clear it up some... thanks...
 
ah ok, well every file extension has a default application to open it if you
double click it. In the case you describe aspx files are set to open with
VS. Mine on the other hand are set to open by Dreamweaver so when I click
one it lets me design the page.
If you right click on an .aspx select 'Open with..' and from there you can
select the applictation to always open that particular file extension. If
you want it to be your web browser then you can but I wouldn't really advise
it for .aspx files. Sure the end result gets displayed there but on its own
the aspx isn't much use apart from just seeing the layout which you are
better off viewing from a debug session within VS.NET anyway and then you
get the full functionality.
 
Back
Top