Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reflection Question
Message
From
02/03/2010 16:17:32
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01452083
Message ID:
01452131
Views:
30
Kevin,

Also from that first link I gave you this seems pretty important for your situation. In paticular the last sentence.
** Quote ***
All code files (including page code-behind) for a WAP are always pre-compiled. In a site, nothing is pre compiled. The ASP.NET runtime will compile everything in the App_Code directory into one DLL and each page will get compiled into its own DLL. This affects the class scope.
** end Quote ***
Tim

>So is it possible to set this up at this point? So that I can use reflection?
>
>>Hi Viv,
>>
>>If you create a website without project files you do not get namespaces in the files. The aspx page will look like this:
>>
>>Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default"
>>
>>
>>And the class will look like this:
>>
>>sing System;
>>using System.Collections.Generic;
>>using System.Linq;
>>using System.Web;
>>using System.Web.UI;
>>using System.Web.UI.WebControls;
>>
>>public partial class _Default : System.Web.UI.Page 
>>{
>>    protected void Page_Load(object sender, EventArgs e)
>>    {
>>
>>    }
>>}
>>
>>
>>That said, there is a namespace involved but much more tricky to deal with. I am assuming based on Kevins response he has a file based website and no project. Anyone know what the namespace actually is? Paul?
>>Tim
>>
>>>>
>>>>I think so. It's an ASP.Net app and there are only 3 pages and the report. I thought I read somewhere that I needed to include
>>>>the namespace, but I don't see any namespaces in a web app.
>>>
>>>There's always a namespace (unless you deliberately removed it). In the ASPX page you can see it in the Inherits attribute of the Page. Or, of course, in rhe aspx.cs file......
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform