How to open a webform in IDE?

  • Thread starter Thread starter Sarah Bram
  • Start date Start date
S

Sarah Bram

Hi,

I have created an ASP.NET app / page with
Microsoft Visual Studio .NET 2003 using C#

But, when I closed VS and re-opened it later,
I see all files in my project,
except the webform I had designed!!

How to open that webform!?
What is the file extension for these webforms?

Thanks in advance.

Regards,
Sarah
P.S: I am new to MS & VS.
Please let me know if this not the right newsgroup to ask this.
 
it should be webform1.aspx by default. if you take a peek at the property
pages on the right side of the screen it should be there. double click it
and the form should appear with whatever was saved to it last.
 
Alvin said:
it should be webform1.aspx by default. if you take a peek at the property
pages on the right side of the screen it should be there. double click it
and the form should appear with whatever was saved to it last.

Thanks for your reply, Alvin:
I have opened the birthday.aspx from the project and selected
View->Designer and got the following errors:

---------------------------
Microsoft Development Environment
---------------------------
The class file 'birthday.aspx.cs' specified as the codebehind for
'birthday.aspx' could not be loaded.
Make sure that the codebehind attribute in the page or control directive
properly references an existing code behind file.
---------------------------
OK
---------------------------


Actually the birthdays.aspx.cs file is already there and opened in the
project in another tab/window.


---------------------------
Microsoft Development Environment
---------------------------
There is no editor available for
'C:\Inetpub\wwwroot\WebApplication1\birthday.aspx'.
Make sure the application for the file type (.aspx) is installed.
---------------------------
OK
---------------------------

Here is the first line .aspx file:
<%@ Page language="c#" Codebehind="birthday.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication1.WebForm1" %>

Oh! Nevermind, I have just renamed "birthday.aspx.cs" to
"birthdays.aspx.cs" in the above lines. It gave an error
first and then started working.
Holy crap...

I always used the Save as option from the IDE and never renamed any
files from outside the IDE. Why would it do that!!??
Looks like this stuff is very fragile!!
May be I should look for a better IDE... Thanks.

Regards,
Sarah
 
Back
Top