Displaying the Directory List - / Browser

I am developing the simplest ASP.NET application that causes an annoying error.

I have a text box and a control button where I want the text in the text box to be saved in the database table when the button is clicked. The text will be transferred to the database using the WCF service.

Since I'm a rather mediocre programmer, I often get errors, and this leads to a large number of error messages appearing in the browser. I can understand that. I correct them and build my decision, and then press F5. But after fixing the errors every time the browser displays a directory listening as below instead of my amazing interface.

Directory List - /

Monday, December 20, 2010 10:10 PM        <dir> bin   
Saturday, December 18, 2010 10:10 PM      1,303 MainForm.aspx
Monday, December 20, 2010 10:28 PM        467 MainForm.aspx.cs   
Saturday, December 18, 2010 10:09 PM      2,118 MainForm.aspx.designer.cs
Friday, December 17, 2010 10:25 PM        <dir> obj
Friday, December 17, 2010 10:25 PM        <dir> Properties
Sunday, December 19, 2010 10:09 PM        <dir> Service References
Monday, December 20, 2010 02:01 PM        5,552 SimpleChat.csproj
Monday, December 20, 2010 02:01 PM        1,170 SimpleChat.csproj.user
Sunday, December 19, 2010 10:09 PM        1,810 Web.config
Friday, December 17, 2010 10:25 PM        1,285 Web.Debug.config
Friday, December 17, 2010 10:25 PM        1,346 Web.Release.config

Version Information: ASP.NET Development Server 10.0.0.0

Why is this happening?

, , : MainForm.aspx.cs , , , . , , .

...; -)

+3
3

- , , " "

"MainForm.aspx"

+7

ASP, , .

0

@Lee Baker: if you type a directory (for example:) http://localhost:1043/projectname/images/, it still lists the directory

0
source

Source: https://habr.com/ru/post/1781333/


All Articles