Home All Groups Group Topic Archive Search About

Intellisense with web.config registration of controls

Author
6 Sep 2006 8:59 AM
sunev
We are working on a large project and using a number of the new asp.net 2.0
features a number of third party controls.
One such feature is the global registration of controls in the web.config,
such as:

<pages>
    <controls>
        <add namespace="Project.WebControls" assembly="Project.Net2"
tagPrefix="ccA"/>
    </controls>
</pages>

This works nicely and means we do not have to add the directive to each
page, however it does mean that the intellisense in Visual Studio 2005 does
not work when editing the markup for the controls.

Do you know of anything to overcome this so intellisense will work (as it
does if the register on the page directly)?


--------------------------
      Shaun Venus
--------------------------

Author
6 Sep 2006 11:47 AM
Walter Wang [MSFT]
Hi Shaun,

I just tested this feature using a simple class library and web site, and
it works correctly.

Are you using web.config in sub-folder of your web site? If so, then due bo
current Visual Studio IDE limitation, only web.config in root folder is
used during design time.

Also, you will need to compile the assembly contains custom control first
if you're referencing the project in your solution.

I hope this helps. Please feel free to post here if anything is unclear.

Sincerely,
Walter Wang (waw***@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Are all your drivers up to date? click for free checkup

Author
7 Sep 2006 12:46 PM
sunev
We have a single root project and a number of sub projects under this.  I
understand that the sub projects may not allow this, but I am not seeing it
work in the root project - I have seen it work when I've got a single web
project (as a test I did this and it works OK).

I've looked for differences, but just cannot see why this would be happening.

S


--------------------------
      Shaun Venus
--------------------------


Show quoteHide quote
"Walter Wang [MSFT]" wrote:

> Hi Shaun,
>
> I just tested this feature using a simple class library and web site, and
> it works correctly.
>
> Are you using web.config in sub-folder of your web site? If so, then due bo
> current Visual Studio IDE limitation, only web.config in root folder is
> used during design time.
>
> Also, you will need to compile the assembly contains custom control first
> if you're referencing the project in your solution.
>
> I hope this helps. Please feel free to post here if anything is unclear.
>
> Sincerely,
> Walter Wang (waw***@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
> ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
Author
7 Sep 2006 1:29 PM
Walter Wang [MSFT]
Hi Shaun,

Thank you for your update.

I understand that you've tested a single web project and it works. However,
I don't quite understand what do you mean by "a single root project and a
number of sub projects under this". Would you please depict more on this?
Or better, could you reproduce the issue by creating a simpler solution and
send it to me? Thank you for your understanding and effort.

Have a nice day!

Regards,
Walter Wang (waw***@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

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

Bookmark and Share