[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

RE: Dynamically creating HTML text on the aspx page at design time

(Mike Moore [MS])

1/4/2003 3:10:00 AM

Hi Al,

I'm looking into your question. I'm not sure that we can solve this within
the scope of newsgroup support, but we will try. Since this is a complex
question, I may not have any additional news for you until Tuesday.

Thank you, Mike Moore
Microsoft, ASP.NET

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

--------------------
>From: "Al" <al@nospam.nospam>
>Subject: Dynamically creating HTML text on the aspx page at design time
>Date: Tue, 31 Dec 2002 16:07:22 -0600
>Lines: 26
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Message-ID: <O6nePdRsCHA.856@TK2MSFTNGP12>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
>NNTP-Posting-Host: tconl16903.tconl.com 63.224.169.3
>Path: cpmsftngxa09!TK2MSFTNGP08!TK2MSFTNGP12
>Xref: cpmsftngxa09
microsoft.public.dotnet.framework.aspnet.webcontrols:8135
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
>
>I'd like to create a custom web control that when I drag it from the
toolbox
>onto the web form designer, it will add more code than just the <%@
Register
>tag.
>
>Similar to what the ToolBoxData attribute does, but more extensive. I've
>tried doing this using ToolBoxData, but it doesn't work like I need it to.
>
>
>I've looked at the Control Designer and template controls, but the methods
>like Render() all generate design time HTML for display on the design
>pallette.
>
>I want to dynamically create HTML and possibly some ECMA script at design
>time that is written on to the aspx page, similar to how a Visual Studio
>macro would work, except by using a server control, the programmer would
>have the ability to set properties, etc.
>
>Any suggestions on an approach?
>
>
>
>
>
>
>
>
>

2 Answers

Al

1/4/2003 6:19:00 PM

0

I thought it might be easier than that.

We just started a Premier for Developer agreement. I'll refer it to our TAM.

Thanks

""Mike Moore [Microsoft]"" <michmo@online.microsoft.com> wrote in message
news:dTIIJZ5sCHA.2372@cpmsftngxa09...
> Hi Al,
>
> I'm looking into your question. I'm not sure that we can solve this within
> the scope of newsgroup support, but we will try. Since this is a complex
> question, I may not have any additional news for you until Tuesday.
>
> Thank you, Mike Moore
> Microsoft, ASP.NET
>



(Mike Moore [MS])

1/6/2003 10:08:00 PM

0

Hi Al,

I did find some more information for you. Please see this article:
Rendering a Server Control Samples

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconrenderin...
trolssamples.asp

You may wish to also look into overriding the GetDesignTimeHtml method of
your control.

Please let me know if you have more questions on this.

Thank you, Mike Moore
Microsoft, ASP.NET

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

--------------------
>From: "Al" <al@nospam.nospam>
>References: <O6nePdRsCHA.856@TK2MSFTNGP12> <dTIIJZ5sCHA.2372@cpmsftngxa09>
>Subject: Re: Dynamically creating HTML text on the aspx page at design time
>Date: Sat, 4 Jan 2003 11:19:35 -0600
>Lines: 20
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Message-ID: <utomAPBtCHA.2496@TK2MSFTNGP10>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
>NNTP-Posting-Host: tconl172240.tconl.com 63.224.172.240
>Path: cpmsftngxa09!TK2MSFTNGP08!TK2MSFTNGP10
>Xref: cpmsftngxa09
microsoft.public.dotnet.framework.aspnet.webcontrols:8199
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
>
>I thought it might be easier than that.
>
>We just started a Premier for Developer agreement. I'll refer it to our
TAM.
>
>Thanks
>
>""Mike Moore [Microsoft]"" <michmo@online.microsoft.com> wrote in message
>news:dTIIJZ5sCHA.2372@cpmsftngxa09...
>> Hi Al,
>>
>> I'm looking into your question. I'm not sure that we can solve this
within
>> the scope of newsgroup support, but we will try. Since this is a complex
>> question, I may not have any additional news for you until Tuesday.
>>
>> Thank you, Mike Moore
>> Microsoft, ASP.NET
>>
>
>
>
>