Custom web control
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcontrolsvb' list.


Chitra Ramalingam
-- Moved from [aspngvs] to [aspngcontrolsvb] by Tim Musschoot <Click here to reveal e-mail address> --

Hi,

I have created a custom web control that renders html script. I call as this
from my aspx to run the custom control like
<tagprefix:mycostomCtrl id="ctrl" title="something">
<b> Hi </b>
</tagprefix:mycustomcontrol>

I want to display the information inside the custom control i.e <a> Hi </a>
in my html rendered web control, for which I use the control.literalcontrol
to show that. But where as if the user calls some asp code. I couldn't parse
it i.e it gives me an error saying cannot parse <% Response.write ("Hi") %>
as literal contol.
<tagprefix:mycostomCtrl id="ctrl" title="something">
<% Response.write ("Hi") %>
</tagprefix:mycustomcontrol>

Please help me

Thanks
Chitra

_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com

Reply to this message...
 
    
Bryan Costanich
you probably want to implement a templated control and add the contents
programmatically.

-b

-----Original Message-----
From: Chitra Ramalingam [mailto:Click here to reveal e-mail address]
Sent: Sunday, August 11, 2002 3:59 AM
To: aspngcontrolsvb
Subject: [aspngcontrolsvb] Custom web control

-- Moved from [aspngvs] to [aspngcontrolsvb] by Tim Musschoot
<Click here to reveal e-mail address> --

Hi,

I have created a custom web control that renders html script. I call as this

from my aspx to run the custom control like
<tagprefix:mycostomCtrl id="ctrl" title="something">
<b> Hi </b>
</tagprefix:mycustomcontrol>

I want to display the information inside the custom control i.e <a> Hi </a>
in my html rendered web control, for which I use the control.literalcontrol
to show that. But where as if the user calls some asp code. I couldn't parse

it i.e it gives me an error saying cannot parse <% Response.write ("Hi") %>
as literal contol.
<tagprefix:mycostomCtrl id="ctrl" title="something">
<% Response.write ("Hi") %>
</tagprefix:mycustomcontrol>

Please help me

Thanks
Chitra

_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com
| [aspngcontrolsvb] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngcontrolsvb.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com