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

Home Posts Topics Members FAQ

custom web control help

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.

Nov 15 '05 #1
4 1465

Hi Scott,

You can add you template control into the tool box as a simple control by
using
"add/remove item" command in tool box.

Also, you can use "add reference" command to add this control's reference,
you can instantiate a object of your control then you can use its
intellisense.

Hope this helps
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Scott C. Reynolds" <sr*********@ho tmail.com>
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b)
Gecko/20030901 Thunderbird/0.2
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Subject: custom web control help
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 7
| Message-ID: <T3************ ***********@bgt nsc05-news.ops.worldn et.att.net>
| NNTP-Posting-Host: 40c28eefae3c706 f0b28f8a3f99536 05
| X-Complaints-To: ab***@worldnet. att.net
| X-Trace: bgtnsc05-news.ops.worldn et.att.net 1063808371
40c28eefae3c706 f0b28f8a3f99536 05 (Wed, 17 Sep 2003 14:19:31 GMT)
| NNTP-Posting-Date: Wed, 17 Sep 2003 14:19:31 GMT
| Organization: AT&T Worldnet
| Date: Wed, 17 Sep 2003 14:19:31 GMT
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!wn 14feed!wn13feed !wn11f
eed!worldnet.at t.net!bgtnsc05-news.ops.worldn et.att.net.POST ED!not-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1855 07
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| 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.
|
|

Nov 15 '05 #2
i have added the reference, and we don't use it visually so adding it to
the tollbox doesn't help. I've also added it to the GAC. None of these
seem to help.

i pass it a couple of variables in the code-behind file for it to init
with, and in code-behind after doing a protected mycontrol thecontrol; I
get all the members with intellisense, but what i want is for it to be
recognized on the aspx page in the HTML view, such that the IDE knows
the tags for the templates, like it does with a DataGrid. I would think
there would have to be a way to do this....what if I were developing
commercial controls...they wouldn't sell well if they didn't integrate
with the IDE.

Jeffrey Tan[MSFT] wrote:
Hi Scott,

You can add you template control into the tool box as a simple control by
using
"add/remove item" command in tool box.

Also, you can use "add reference" command to add this control's reference,
you can instantiate a object of your control then you can use its
intellisense .

Hope this helps
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Scott C. Reynolds" <sr*********@ho tmail.com>
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b)
Gecko/20030901 Thunderbird/0.2
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Subject: custom web control help
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 7
| Message-ID: <T3************ ***********@bgt nsc05-news.ops.worldn et.att.net>
| NNTP-Posting-Host: 40c28eefae3c706 f0b28f8a3f99536 05
| X-Complaints-To: ab***@worldnet. att.net
| X-Trace: bgtnsc05-news.ops.worldn et.att.net 1063808371
40c28eefae3c70 6f0b28f8a3f9953 605 (Wed, 17 Sep 2003 14:19:31 GMT)
| NNTP-Posting-Date: Wed, 17 Sep 2003 14:19:31 GMT
| Organization: AT&T Worldnet
| Date: Wed, 17 Sep 2003 14:19:31 GMT
| Path:
cpmsftngxa06.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!wn 14feed!wn13feed !wn11f
eed!worldnet.a tt.net!bgtnsc05-news.ops.worldn et.att.net.POST ED!not-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1855 07
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| 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.
|
|


Nov 15 '05 #3

Hi Scott,

I understand your meanning.
To add intellisense support in HTML view, it needs more works to do.
For details, you can refer to the link below:
http://www.ondotnet.com/pub/a/dotnet...dex3.html?page
=4

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Scott C. Reynolds" <sr*********@ho tmail.com>
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b)
Gecko/20030901 Thunderbird/0.2
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Subject: Re: custom web control help
| References:
<T3************ ***********@bgt nsc05-news.ops.worldn et.att.net>
<Iu************ **@cpmsftngxa06 .phx.gbl>
| In-Reply-To: <Iu************ **@cpmsftngxa06 .phx.gbl>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 72
| Message-ID: <rN************ ***********@bgt nsc05-news.ops.worldn et.att.net>
| NNTP-Posting-Host: 42ee9941be519ab 480930273aa1225 bf
| X-Complaints-To: ab***@worldnet. att.net
| X-Trace: bgtnsc05-news.ops.worldn et.att.net 1063893207
42ee9941be519ab 480930273aa1225 bf (Thu, 18 Sep 2003 13:53:27 GMT)
| NNTP-Posting-Date: Thu, 18 Sep 2003 13:53:27 GMT
| Organization: AT&T Worldnet
| Date: Thu, 18 Sep 2003 13:53:27 GMT
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new s-out.cwix.com!ne wsfeed.cwix.co
m!tdsnet-transit!newspee r.tds.net!205.2 15.62.125.MISMA TCH!in.100proof news.co
m!in.100proofne ws.com!cycny01. gnilink.net!cyc lone1.gnilink.n et!wn11feed!wor l
dnet.att.net!bg tnsc05-news.ops.worldn et.att.net.POST ED!not-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1858 10
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| i have added the reference, and we don't use it visually so adding it to
| the tollbox doesn't help. I've also added it to the GAC. None of these
| seem to help.
|
| i pass it a couple of variables in the code-behind file for it to init
| with, and in code-behind after doing a protected mycontrol thecontrol; I
| get all the members with intellisense, but what i want is for it to be
| recognized on the aspx page in the HTML view, such that the IDE knows
| the tags for the templates, like it does with a DataGrid. I would think
| there would have to be a way to do this....what if I were developing
| commercial controls...they wouldn't sell well if they didn't integrate
| with the IDE.
|
|
|
| Jeffrey Tan[MSFT] wrote:
|
| >Hi Scott,
| >
| >You can add you template control into the tool box as a simple control
by
| >using
| >"add/remove item" command in tool box.
| >
| >Also, you can use "add reference" command to add this control's
reference,
| >you can instantiate a object of your control then you can use its
| >intellisense .
| >
| >Hope this helps
| >Best regards,
| >Jeffrey Tan
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >This posting is provided "as is" with no warranties and confers no
rights.
| >
| >--------------------
| >| From: "Scott C. Reynolds" <sr*********@ho tmail.com>
| >| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b)
| >Gecko/20030901 Thunderbird/0.2
| >| X-Accept-Language: en-us, en
| >| MIME-Version: 1.0
| >| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| >| Subject: custom web control help
| >| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 7
| >| Message-ID:
<T3************ ***********@bgt nsc05-news.ops.worldn et.att.net>
| >| NNTP-Posting-Host: 40c28eefae3c706 f0b28f8a3f99536 05
| >| X-Complaints-To: ab***@worldnet. att.net
| >| X-Trace: bgtnsc05-news.ops.worldn et.att.net 1063808371
| >40c28eefae3c70 6f0b28f8a3f9953 605 (Wed, 17 Sep 2003 14:19:31 GMT)
| >| NNTP-Posting-Date: Wed, 17 Sep 2003 14:19:31 GMT
| >| Organization: AT&T Worldnet
| >| Date: Wed, 17 Sep 2003 14:19:31 GMT
| >| Path:
|
cpmsftngxa06.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli n
|e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!wn 14feed!wn13feed !wn11 f
|eed!worldnet.a tt.net!bgtnsc05-news.ops.worldn et.att.net.POST ED!not-for-mail

| >| Xref: cpmsftngxa06.ph x.gbl
microsoft.publi c.dotnet.langua ges.csharp:1855 07
| >| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
| >|
| >| 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.
| >|
| >|
| >
| >
| >
|
|

Nov 15 '05 #4
Thank you! that is exactly what i was looking for.

Jeffrey Tan[MSFT] wrote:
Hi Scott,

I understand your meanning.
To add intellisense support in HTML view, it needs more works to do.
For details, you can refer to the link below:
http://www.ondotnet.com/pub/a/dotnet...dex3.html?page
=4

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Scott C. Reynolds" <sr*********@ho tmail.com>
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b)
Gecko/20030901 Thunderbird/0.2
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Subject: Re: custom web control help
| References:
<T3*********** ************@bg tnsc05-news.ops.worldn et.att.net>
<Iu*********** ***@cpmsftngxa0 6.phx.gbl>
| In-Reply-To: <Iu************ **@cpmsftngxa06 .phx.gbl>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 72
| Message-ID: <rN************ ***********@bgt nsc05-news.ops.worldn et.att.net>
| NNTP-Posting-Host: 42ee9941be519ab 480930273aa1225 bf
| X-Complaints-To: ab***@worldnet. att.net
| X-Trace: bgtnsc05-news.ops.worldn et.att.net 1063893207
42ee9941be519a b480930273aa122 5bf (Thu, 18 Sep 2003 13:53:27 GMT)
| NNTP-Posting-Date: Thu, 18 Sep 2003 13:53:27 GMT
| Organization: AT&T Worldnet
| Date: Thu, 18 Sep 2003 13:53:27 GMT
| Path:
cpmsftngxa06.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne ws-out.cwix.com!ne wsfeed.cwix.co
m!tdsnet-transit!newspee r.tds.net!205.2 15.62.125.MISMA TCH!in.100proof news.co
m!in.100proofn ews.com!cycny01 .gnilink.net!cy clone1.gnilink. net!wn11feed!wo rl
dnet.att.net!b gtnsc05-news.ops.worldn et.att.net.POST ED!not-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1858 10
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| i have added the reference, and we don't use it visually so adding it to
| the tollbox doesn't help. I've also added it to the GAC. None of these
| seem to help.
|
| i pass it a couple of variables in the code-behind file for it to init
| with, and in code-behind after doing a protected mycontrol thecontrol; I
| get all the members with intellisense, but what i want is for it to be
| recognized on the aspx page in the HTML view, such that the IDE knows
| the tags for the templates, like it does with a DataGrid. I would think
| there would have to be a way to do this....what if I were developing
| commercial controls...they wouldn't sell well if they didn't integrate
| with the IDE.
|
|
|
| Jeffrey Tan[MSFT] wrote:
|
| >Hi Scott,
| >
| >You can add you template control into the tool box as a simple control
by
| >using
| >"add/remove item" command in tool box.
| >
| >Also, you can use "add reference" command to add this control's
reference,
| >you can instantiate a object of your control then you can use its
| >intellisense .
| >
| >Hope this helps
| >Best regards,
| >Jeffrey Tan
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >This posting is provided "as is" with no warranties and confers no
rights.
| >
| >--------------------
| >| From: "Scott C. Reynolds" <sr*********@ho tmail.com>
| >| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b)
| >Gecko/20030901 Thunderbird/0.2
| >| X-Accept-Language: en-us, en
| >| MIME-Version: 1.0
| >| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| >| Subject: custom web control help
| >| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 7
| >| Message-ID:
<T3*********** ************@bg tnsc05-news.ops.worldn et.att.net>
| >| NNTP-Posting-Host: 40c28eefae3c706 f0b28f8a3f99536 05
| >| X-Complaints-To: ab***@worldnet. att.net
| >| X-Trace: bgtnsc05-news.ops.worldn et.att.net 1063808371
| >40c28eefae3c70 6f0b28f8a3f9953 605 (Wed, 17 Sep 2003 14:19:31 GMT)
| >| NNTP-Posting-Date: Wed, 17 Sep 2003 14:19:31 GMT
| >| Organization: AT&T Worldnet
| >| Date: Wed, 17 Sep 2003 14:19:31 GMT
| >| Path:
|

cpmsftngxa06. phx.gbl!TK2MSFT NGP08.phx.gbl!n ewsfeed00.sul.t-online.de!t-onli

n
|

e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!wn 14feed!wn13feed !wn11

f
|

eed!worldnet. att.net!bgtnsc0 5-news.ops.worldn et.att.net.POST ED!not-for-mail

| >| Xref: cpmsftngxa06.ph x.gbl
microsoft.publ ic.dotnet.langu ages.csharp:185 507
| >| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
| >|
| >| 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.
| >|
| >|
| >
| >
| >
|
|


Nov 15 '05 #5

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

Similar topics

8
3180
by: Tinus | last post by:
Hello all, I've create a custom control (UserControl) and have a custom Item Collection. The control is a custom calendar which is draw using the Graphics Rectangle etc. functions. It is drawn when the control is painted or resized. When the control is drawn it draws also the items found in the collection. So far so good.... I have 3 questions which I'm unable to find a solution
15
10936
by: Tinus | last post by:
Hello all, I've created a custom control that draws a monthly schedule (using the Draw function in C#). Basically it draws 31 boxes and writes the day number in every box. This works great. But I now want to show a different tooltip for every day. For now I found out that I can add a tooltip for the entire custom control
21
2092
by: One Handed Man \( OHM - Terry Burns \) | last post by:
When using a custom control. In order to check and see if values have changed one has to implement the IPostBackDataCollection interface. The values returned for the control seem to be simply a string with comma delimited values. For example, if I were to render two text boxes. One with the Value Terry and the Other with the Value 'Burns' I would get the following value Terry,Burns.
7
2990
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
2578
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom controls periodically disappear from my
19
4906
by: Jamey Shuemaker | last post by:
I'm in the process of expanding my knowledge and use of Class Modules. I've perused MSDN and this and other sites, and I'm pretty comfortable with my understanding of Class Modules with the exception of custom Collection Classes. Background: I'm developing an A2K .mdb to be deployed as an .mde at my current job-site. It has several custom controls which utilize custom classes to wrap built-in controls, and add additional functionality....
5
2337
by: Alan Silver | last post by:
Hello, I have a products page that takes a product ID in the query string. Based on the product details (from a database), the page then loads up one of a number of custom controls, calls a method in the control (that displays product info) and then loads the control into a placeholder so it will be displayed. I want to be able to restore the state of the controls in the custom control, but can't get it to work. For example, the...
15
6505
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
2
3251
by: ahmed.maryam | last post by:
Hello Everyone, I designed a custom control that is entirely covered by a picture box. I then dragged this custom control onto a windows form application (called main) and I need to handle mouse events in my main application. Specifically, when a user double clicks on my custom control I need to draw something on another picture box located in my main application. I'm going to attempt to draw the scenario because I think it will
0
8324
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,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
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
8617
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
7353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1970
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.