1. You should look up the purpose of the App_Data folder. It is not
intended for code files / aspx pages.

2. Do you have any code in the Default.aspx.cs file which might
conflict with the code in the aspx itself ?

On Oct 5, 11:49 pm, BigJ <[EMAIL PROTECTED]> wrote:
> I'm using Visual Web developer express to create ASP.NET apps.
>
> When I create a new file in the app_data directory, lets say
> firstPage.aspx,
>
> and then load the URLhttp://localhost:1302/firstapp/app_data/firstpage.aspx,
> it gives throws this error:
>
> Server Error in '/firstApp' Application.
> HTTP Error 403 - Forbidden.
> Version Information: ASP.NET Development Server 9.0.0.0
>
> However when I make my own sub directory and put firstpage.aspx 
> in,http://localhost:1302/firstapp/subdir1/firstpage.aspx, it works fine.
>
> Also another question, I have the file default.aspx with the following
> code:
> <%@ Page Language="C#" AutoEventWireup="true"
> CodeFile="Default.aspx.cs" Inherits="_Default" %>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <script runat="server">
> void Page_Load(){
>     lblServerTime.Text=DateTime.Now.ToString();}
>
> </script>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head runat="server">
>     <title>My First App</title>
> </head>
> <body>
>     <form id="form1" runat="server">
>     <div>
>     Holla <asp:Label id="lblServerTime" runat="server"></asp:Label>
>     </div>
>     </form>
> </body>
> </html>
>
> In this case, the asp Label does not output any code, which i'm
> assuming is because lblServerTime is not set.  However, if i change
> the compiler directive at the top to <%@ Page Langauge="C#" %>, it
> produces the correct output.  What the difference in the attributes
> that's causing this?
>
> Thanks
>
> Jon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment

You may subscribe to group Feeds using a RSS Feed Reader to stay upto date 
using following url  

<a href="http://feeds.feedburner.com/DotNetDevelopment";> 
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---

Reply via email to