Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET 2.0 / VS 2005: How do I reference a Page object?

Reply
Thread Tools

ASP.NET 2.0 / VS 2005: How do I reference a Page object?

 
 
=?Utf-8?B?TWljaGFlbCBLdW50c2NoZXI=?=
Guest
Posts: n/a
 
      01-18-2005
In ASP.NET 1.1, you can GetType on an ASPX page, as in the following:
GetType(Pages.JobPoster.Jobs.MyJobsSwitchAccount)

But when I try this under ASP.NET 2.0, I am unable to find the ASPX in the
Intellisense and the line above is an error.

It's as if pages are no long considered first-class objects.

Are you no long able to access pages as objects?

Thanks,
Michael Kuntscher
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference ASP.Net Page from a Master Page =?Utf-8?B?Q2hhcmxpZQ==?= ASP .Net 2 12-11-2006 01:27 AM
reference master page class from content page base class? Managed Code ASP .Net 3 07-31-2006 04:39 PM
Reference to another instance of page from a page (URGENT!!!) Oney ASP .Net 2 01-27-2005 01:15 PM
web reference interfering with reference to component Dude ASP .Net 0 11-09-2004 11:53 AM
How to tell if a reference is project or file reference from within the IDE? Darren ASP .Net 0 10-11-2004 12:51 AM



Advertisments