custom web control help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Scott C. Reynolds

    #1

    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.

  • Jeffrey Tan[MSFT]

    #2
    RE: custom web control help


    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" <sreynolds17@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_9b.146214$3 o3.10463545@bgt nsc05-news.ops.worldn et.att.net>
    | NNTP-Posting-Host: 40c28eefae3c706 f0b28f8a3f99536 05
    | X-Complaints-To: abuse@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.
    |
    |

    Comment

    • Scott C. Reynolds

      #3
      Re: custom web control help

      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:
      [color=blue]
      >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" <sreynolds17@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_9b.146214$3 o3.10463545@bgt nsc05-news.ops.worldn et.att.net>
      >| NNTP-Posting-Host: 40c28eefae3c706 f0b28f8a3f99536 05
      >| X-Complaints-To: abuse@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.
      >|
      >|
      >
      >
      >[/color]

      Comment

      • Jeffrey Tan[MSFT]

        #4
        Re: custom web control help


        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:
        Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

        =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" <sreynolds17@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_9b.146214$3 o3.10463545@bgt nsc05-news.ops.worldn et.att.net>
        <Iu2MhaYfDHA.15 48@cpmsftngxa06 .phx.gbl>
        | In-Reply-To: <Iu2MhaYfDHA.15 48@cpmsftngxa06 .phx.gbl>
        | Content-Type: text/plain; charset=ISO-8859-1; format=flowed
        | Content-Transfer-Encoding: 7bit
        | Lines: 72
        | Message-ID: <rNiab.147842$3 o3.10568323@bgt nsc05-news.ops.worldn et.att.net>
        | NNTP-Posting-Host: 42ee9941be519ab 480930273aa1225 bf
        | X-Complaints-To: abuse@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" <sreynolds17@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_9b.146214$3 o3.10463545@bgt nsc05-news.ops.worldn et.att.net>
        | >| NNTP-Posting-Host: 40c28eefae3c706 f0b28f8a3f99536 05
        | >| X-Complaints-To: abuse@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:
        |[color=blue]
        >cpmsftngxa06.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli[/color]
        n
        |[color=blue]
        >e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!wn 14feed!wn13feed !wn11[/color]
        f
        |[color=blue]
        >eed!worldnet.a tt.net!bgtnsc05-news.ops.worldn et.att.net.POST ED!not-for-mail[/color]
        | >| 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.
        | >|
        | >|
        | >
        | >
        | >
        |
        |

        Comment

        • Scott C. Reynolds

          #5
          Re: custom web control help

          Thank you! that is exactly what i was looking for.

          Jeffrey Tan[MSFT] wrote:
          [color=blue]
          >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" <sreynolds17@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_9b.146214$ 3o3.10463545@bg tnsc05-news.ops.worldn et.att.net>
          ><Iu2MhaYfDHA.1 548@cpmsftngxa0 6.phx.gbl>
          >| In-Reply-To: <Iu2MhaYfDHA.15 48@cpmsftngxa06 .phx.gbl>
          >| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
          >| Content-Transfer-Encoding: 7bit
          >| Lines: 72
          >| Message-ID: <rNiab.147842$3 o3.10568323@bgt nsc05-news.ops.worldn et.att.net>
          >| NNTP-Posting-Host: 42ee9941be519ab 480930273aa1225 bf
          >| X-Complaints-To: abuse@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" <sreynolds17@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_9b.146214$ 3o3.10463545@bg tnsc05-news.ops.worldn et.att.net>
          >| >| NNTP-Posting-Host: 40c28eefae3c706 f0b28f8a3f99536 05
          >| >| X-Complaints-To: abuse@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:
          >|
          >
          >[color=green]
          >>cpmsftngxa06. phx.gbl!TK2MSFT NGP08.phx.gbl!n ewsfeed00.sul.t-online.de!t-onli
          >>
          >>[/color]
          >n
          >|
          >
          >[color=green]
          >>e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!wn 14feed!wn13feed !wn11
          >>
          >>[/color]
          >f
          >|
          >
          >[color=green]
          >>eed!worldnet. att.net!bgtnsc0 5-news.ops.worldn et.att.net.POST ED!not-for-mail
          >>
          >>[/color]
          >| >| 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.
          >| >|
          >| >|
          >| >
          >| >
          >| >
          >|
          >|
          >
          >
          >[/color]

          Comment

          Working...