custom web control help

  • Thread starter Thread starter Scott C. Reynolds
  • Start date Start date
S

Scott C. Reynolds

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.
 
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" <[email protected]>
| 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.public.dotnet.languages.csharp
| Subject: custom web control help
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 7
| Message-ID: <[email protected]>
| NNTP-Posting-Host: 40c28eefae3c706f0b28f8a3f9953605
| X-Complaints-To: (e-mail address removed)
| X-Trace: bgtnsc05-news.ops.worldnet.att.net 1063808371
40c28eefae3c706f0b28f8a3f9953605 (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!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn14feed!wn13feed!wn11f
eed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:185507
| X-Tomcat-NG: microsoft.public.dotnet.languages.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.
|
|
 
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.
 
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/excerpt/aspdotnetian_6/index3.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" <[email protected]>
| 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.public.dotnet.languages.csharp
| Subject: Re: custom web control help
| References:
<[email protected]>
<[email protected]>
| In-Reply-To: <[email protected]>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 72
| Message-ID: <[email protected]>
| NNTP-Posting-Host: 42ee9941be519ab480930273aa1225bf
| X-Complaints-To: (e-mail address removed)
| X-Trace: bgtnsc05-news.ops.worldnet.att.net 1063893207
42ee9941be519ab480930273aa1225bf (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.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwix.com!newsfeed.cwix.co
m!tdsnet-transit!newspeer.tds.net!205.215.62.125.MISMATCH!in.100proofnews.co
m!in.100proofnews.com!cycny01.gnilink.net!cyclone1.gnilink.net!wn11feed!worl
dnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:185810
| X-Tomcat-NG: microsoft.public.dotnet.languages.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" <[email protected]>
| >| 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.public.dotnet.languages.csharp
| >| Subject: custom web control help
| >| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 7
| >| Message-ID:
<[email protected]>
| >| NNTP-Posting-Host: 40c28eefae3c706f0b28f8a3f9953605
| >| X-Complaints-To: (e-mail address removed)
| >| X-Trace: bgtnsc05-news.ops.worldnet.att.net 1063808371
| >40c28eefae3c706f0b28f8a3f9953605 (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!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli n
|
f
|
eed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
| >| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:185507
| >| X-Tomcat-NG: microsoft.public.dotnet.languages.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.
| >|
| >|
| >
| >
| >
|
|
 
Thank you! that is exactly what i was looking for.
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/excerpt/aspdotnetian_6/index3.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" <[email protected]>
| 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.public.dotnet.languages.csharp
| Subject: Re: custom web control help
| References:
<[email protected]>
<[email protected]>
| In-Reply-To: <[email protected]>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Lines: 72
| Message-ID: <[email protected]>
| NNTP-Posting-Host: 42ee9941be519ab480930273aa1225bf
| X-Complaints-To: (e-mail address removed)
| X-Trace: bgtnsc05-news.ops.worldnet.att.net 1063893207
42ee9941be519ab480930273aa1225bf (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.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwix.com!newsfeed.cwix.co
m!tdsnet-transit!newspeer.tds.net!205.215.62.125.MISMATCH!in.100proofnews.co
m!in.100proofnews.com!cycny01.gnilink.net!cyclone1.gnilink.net!wn11feed!worl
dnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:185810
| X-Tomcat-NG: microsoft.public.dotnet.languages.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" <[email protected]>
| >| 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.public.dotnet.languages.csharp
| >| Subject: custom web control help
| >| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 7
| >| Message-ID:
<[email protected]>
| >| NNTP-Posting-Host: 40c28eefae3c706f0b28f8a3f9953605
| >| X-Complaints-To: (e-mail address removed)
| >| X-Trace: bgtnsc05-news.ops.worldnet.att.net 1063808371
| >40c28eefae3c706f0b28f8a3f9953605 (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!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli

n
|


f
|


eed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
| >| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:185507
| >| X-Tomcat-NG: microsoft.public.dotnet.languages.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.
| >|
| >|
| >
| >
| >
|
|
 
Back
Top