.NETGURU
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...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification