473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Overridden Control and IntelliSense

I have an overridden control:

public class DJGridView : GridView { }

All works great except that I loose IntelliSense for all of the child
elements while editing the HTML file from within VS2005. Any suggestions on
what I could include within my control to enable this functionality?

Thanks,
Apr 16 '07 #1
7 1700
Hi Andrew,

As for the Intellisense, it is controlled by the certain XML schema setting
of Visual Studio IDE. ASP.NET built-in server controls have internal XML
schema associated with them. For custom web server control, you may add
your custom schema:

#Adding Design-Time Support to ASP.NET Controls
http://msdn2.microsoft.com/en-us/library/aa478960.aspx

#How to add a custom intellisense and validation schema to Visual Web
Developer 2005
http://blogs.msdn.com/mikhailarkhipo...01/522614.aspx

Also, for ASP.NET 2.0, the schema generation of web control seems vary from
ASP.NET 1.x, you can have a look at the following blog entry:

http://www.nikhilk.net/MetadataBasedIntellisense.aspx

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.

Apr 17 '07 #2
Steve,

Thanks for the info but I am still pretty stuck. My issue is pretty specific
in that it involves inheriting from an existing control. Nikhil Kothari
stuff is very informative and I am sure he could solve my issue but I don't
see him specifically addressing it.

In my case, I am inheriting form a GridView and all of the top level sub
elements are available such as Columns, but the asp:templateFie ld within the
columns fails to format or expand with intelli sense. The same goes for all
the 2nd level sub tags.

I kind of wounder if this is possibly a VS bug?

-Andy

"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:BL******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Andrew,

As for the Intellisense, it is controlled by the certain XML schema
setting
of Visual Studio IDE. ASP.NET built-in server controls have internal XML
schema associated with them. For custom web server control, you may add
your custom schema:

#Adding Design-Time Support to ASP.NET Controls
http://msdn2.microsoft.com/en-us/library/aa478960.aspx

#How to add a custom intellisense and validation schema to Visual Web
Developer 2005
http://blogs.msdn.com/mikhailarkhipo...01/522614.aspx

Also, for ASP.NET 2.0, the schema generation of web control seems vary
from
ASP.NET 1.x, you can have a look at the following blog entry:

http://www.nikhilk.net/MetadataBasedIntellisense.aspx

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.
Apr 17 '07 #3
Thanks for your reply Andy,

For the case that you derive your custom control from an existing well
encapsulated one(like GridView), I've tested and the design-time
intellisense does work abit strange(only top level property will show
intellisense). I'll do some further research to see whether there is any
particular things we've missed.

Sincerely,

Steven Cheng

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

Apr 19 '07 #4
Steve,

You have described the exact behavior that I am seeing.

Thanks,

--

Andrew Robinson
"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:XH******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Thanks for your reply Andy,

For the case that you derive your custom control from an existing well
encapsulated one(like GridView), I've tested and the design-time
intellisense does work abit strange(only top level property will show
intellisense). I'll do some further research to see whether there is any
particular things we've missed.

Sincerely,

Steven Cheng

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

Apr 19 '07 #5
Sure. I'll update you if I get any new info on this.

Sincerely,

Steven Cheng

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

Apr 23 '07 #6
Steve,

Any updates on this? Smells like a Visual Studio bug to me.

Thanks,

"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:id******** ********@TK2MSF TNGHUB02.phx.gb l...
Sure. I'll update you if I get any new info on this.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
Apr 25 '07 #7
Hi Andrew,

I've replied your mail and currently based on some further discussion with
some engineer, this does likely be an issue of the Visual Studio
design-time intellisense engine as it doesn't correctly reflect the sub
inner properties of overrided custom GridView control. According to the
complexity of further troubleshooting on this issue, if this is an urgent
and high priority problem, I suggest you contact CSS for continue
assistance:

http://msdn.microsoft.com/subscripti...t/default.aspx

Meanwhile, if there is still anything we can help, please feel free to post
here.

Sincerely,

Steven Cheng

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


Apr 27 '07 #8

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

Similar topics

4
1465
by: Scott C. Reynolds | last post by:
Hi. I have created a templated control, and I want to know how i can set it up so that the projects consuming it will have all the same intellisense benefits of using any other server control. It will be used by multiple projects.
5
3150
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access the code variable that are supposed to be linked to the contained controls. It runs fines when everything is contained in a single web form project. What do I need to do to make it work from a class library?
1
2305
by: Kris van der Mast | last post by:
Hi, been a while since I posted a question myself instead of trying to help others out. I'm refactoring an existing web app that uses dynamic loading of user controls and a lot of response.redirects to the same page. Because I hate the overhead by doing this I'm searching for a cleaner option. But I'm having troubles (off course or I wouldn't be posting this).
5
14002
by: Jimmy | last post by:
Hi I am trying to check whether checkboxes are checked in my user control. I have problems getting the right reference to the checkboxes: <%@ Page language="c#" Codebehind="WebForm2.aspx.cs" AutoEventWireup="false" Inherits="javascriptusercontrol.WebForm2" %> <%@ Register TagPrefix="uc1" TagName="WebUserControl1" Src="WebUserControl1.ascx" %>
0
1076
by: Michael Carr | last post by:
I am trying to add a user control to a web form and implement one of the control's events. However, when I add the user control to the form, intellisense doesn't seem to detect it as a control. Even if it does, it doesn't detect the control's events because when I switch to Designer view to implement the event, there are no events listed for the control in the properties box. With VS 2003 I used to just implement events by manually...
3
1675
by: Elliot M. Rodriguez | last post by:
A 3rd party OCX that I am using in a VB.NET app is missing several properties and methods in Intellisense. I know they are missing because I have the complete API reference for the OCX, and if I use the same OCX in a VB6 standard EXE, the items I want show up. If I try to add them anyway, I get precompiler errors. I can only guess at a problem with Automation... Are there any general reasons why a control's interfaces will show up...
10
1769
by: aarepasky | last post by:
I am using ASP Web 2005 express. I created the user control below and I am listing the html code. I have 2 textboxes. One is txtCompanyName. The main page has 2 panels on it and a button. Panel1 contains the user control1 which is a form that has the txtCompanyName. Panel2 contains another user control2 which is another form. When I click the button, I want to do something with the textbox
8
1497
by: Chris | last post by:
Hi, i have in an content page a fieldset containing a label, an iframe and a textarea: <asp:Content ID="Content1" ContentPlaceHolderID="main" Runat="Server"> <fieldset style="width:650px;"> <asp:Label ID="Label1" runat="server"></asp:Label> <iframe ..... ></iframe> <textarea id="txta" rows="6"></textarea>
6
5780
by: wink | last post by:
I'd like to determine if a method has been overridden as was asked here: http://www.velocityreviews.com/forums/t564224-determining-whether-a-derived-class-overrides-a-virtual-memberfunction.html The answer was can't do it, but I thought I'd ask here, my test code is: #include <iostream>
0
8399
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8312
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.