473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

can the object browser find user controls?

tbh
hi, hope this cross-post is OK. it's unclear to me whether this question
belongs more under vstudio or dotnet...

i'm using VS2005 pro and am one co-developer of a web solution that is
getting to be at least medium sized. (about 60k lines of C# in the solution
itself and perhaps another 20k lines in libraries we've developed.)

finding classes we've built can be challenging at times and in theory the
object browser should be my friend.

i don't seem to find classes in user controls, however. (if so, this is yet
another drawback of user controls -- along with limits on refactoring, "go
to definition" and others.) we use our own user controls extensively to
avoid re-building the whole solution during development (which alas happens
anytime even a harmless space is added to a .cs file under app_code.)

can anyone shed light on this? (i realize this might be a symptom of our
choice of work-around; maybe there are better approaches than using user
controls; we're open to suggestions there too.)

cheers,

Tim
Nov 23 '06 #1
2 1465
Hello Tim,

From your description, you have a large ASP.NET project which has use some
ascx usercontrols, however, you found that the objectbrowser in IDE can not
find those usercontrol classes (as other normal component class in app_code
or referenced class library project), correct?

As for this issue, based on my understanding, it it likely due to the new
class compilation model of ASP.NET 2.0 pages and usercontrol. You can find
that in ASP.NET 2.0, the web application use dynamic compilation, and the
aspx page and ascx usercontrol are using the partial class (new in .net
2.0). As for partial class, it is determined by multiple source files, and
for ASP.NET aspx page/ascx usercontrol, they're more particular, they're
consist of aspx/ascx template and a codebehind file, this make the IDE can
not figure out the complete class at design-time. Therefore the
objectbrowser or the Class Viewer of VS 2005 can not list those page and
usercontrol's codebehind class.

I'm not sure whether your project will consider using a base
class(non-partial) for each usercontrol, if so, such a base class(in
App_Code or in a class library project) can be listed in object browser or
class viewer.

Anyway, I'll help you consult some other ASPNET/devenv engineers to see
whether we can find any other means to workaround the this issue.

I'll update you as soon as I get any update.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 24 '06 #2
Hello Tim,

Have you got any further ideas on this issue? Please feel free to post
here if there is anything else we can help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ralph Freshour | last post by:
Is it possible to inhibit the browser Back/Fwd buttons via PHP? Thanks...
9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
3
by: news.onetel.net.uk | last post by:
I and my friend Karl have spent literally all day trying to find out what is causing my error but we are zapped of any further functionality :) I have a form that adds news records. You select...
1
by: Reza Nabi | last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a placeholder dynamically based on the ctlName querystring passed in the URL. Webform (LoadCtl.aspx) also passes a...
5
by: John A Grandy | last post by:
is it possible to write a vb.net code (intended to run on the client-side) that would invoke an instance of IE, have it download a page from a certain URL, and then pre-populate some of the...
1
by: UnaCoder | last post by:
Hi, I noticed that this particular object is only accessable if the IE security setting "Initialize and and script ActiveX controls not marked as safe" is enabled. Does windows maintain this list...
7
by: jmp | last post by:
(I hope this isn't considered too far off-topic.) I work as a developer on a browser product found on handheld devices, and I'm trying to specify behavior for the browser to make it "as...
9
by: Cylix | last post by:
The following example are going to create an object to store the client Information, I would like to new the object to init all the properties by function: setProperty() Can I set the value to...
3
Frinavale
by: Frinavale | last post by:
I've created a few ASP.NET Ajax Enable Server controls. There are 2 components to these controls: a server side Object that deals with the server side stuffs, and a client side Object that deals...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.