Web Control with <abc:Control>TEXT HERE</abc:Control>

I'm trying to create a custom web control and support putting stuff in the middle - between the openning and closing tags:

 <abc:Control>TEXT HERE</abc:Control>

I would like to be able to put both text and other web controls between the tags. How do I do this?

11/10/2006 8:56:26 PM
asp.net.web-forms 93655 articles. 6 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 15


why not the normal web user control? It also works fine.

Maybe it is hard to create a control with the openning and closing tags

11/13/2006 7:17:16 AM

Similar Artilces:

<%@ Register %> vs. <controls> in web.config
Is either of the two methods for user controls preferred from the point of view of memory and overhead? 1.<%@ Register TagPrefix="tgPrfxName" TagName="header" Src="~/User Controls/Header.ascx" %> in each page or2.<add tagPrefix="tgPrfxName" src="~/User Controls/Header.ascx" tagName="header"/> in the web.config There is not a memory or compilation difference between the two... But the "controls" method is much cleaner than a "Register" tag on every page :P Peace,-Timothy Khourihttp://www.SingingEels.com/Developer / Architect / Author...

Custom Composite Control
Let's start with what I'm looking for: <controls:MyWrapper id="Blah" runat="server">     <content>         <controls:Exporter id="Blah1" runat="server"  {This control has an image button and some other controls} />         <controls:GridView {This is a fully functional GridView} />         <controls:CustomFooterDetailer id="Yadda" runat="server" /> &nb...

Header and Footer user control contains <html>, <body>, and <form> elements
Hi, I have read that we can not/should not use html, body and form tag in the user control. But here these tags are used in the Header control. I would like to know that although we can use those tags in User Control, should we use or should we follow other alternative for this. Thanks in advance, ---------------------------- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcreatingpageletcontrol.asp ...

Data control that outputs <div> and not <table >or <span>
 hi? i've been doing xhtml and css for a while and have just ventured into asp.net.i'm getting to grips with all the web controls but i have one problem.i want to be able to output a div layout for the data controls.the closest i have found is the datalist control that you can alter to output <span> instead of <table>is there any control that can output a <div> layout ? please point me in the right direction thanks  Hi, Panel should render as <DIV>, and if you use it in Repeater, you can do databinding etc. Repeater does not create markup...

About the control <a> </a>
I have this code:   <style>    .ImagesMouseHover{     display:block;    font-size:80%;    text-align:center;     }   </style> Asp Code:     <td>                <a href="http://forums.asp.net/AddPost.aspx?ForumID=18#" class="ImagesMouseHover" onclick="ClickFunction">                &l...

What a crap take control of my Window Genuine M$ <<<SIGH>>>
Just play yesterday with Comodo Memory Firewall Version 2.0 http://www.memoryfirewall.comodo.com/ After reboot my Vista RED warning that my machine is not Genuine certificate from M$ ,I was shock...why??? Than I try to uninstall it,CTRPNL is not exist anymore + with ADMIN account too <<<SUCKS>>> THX God, I can open program and run the uninstaller, but after view reboots on my Sys.Tray still exist, YUCK. Now from my CTRPNL my Vista run the uninstall application >> Reboot >> open REGEDIT >>HKLM & HKCU_Software delete all Comodo Group,than go ...

data controls that output <div> and not <span> or <table> tags
 hi are there any controls that can output <div>?or can someone show me how to build my own controls for displaying data in div format?  Hi,use a Repeater control. Probably, haven't tested it myself, in .NET 3.5 you could also use the ListView for this.Grz, Kris. Read my blog. Handy Firefox plugins for web developers.Workaround for non working Mark as answer buttons....

Viewstate <--> Methods; Session <--> Web Forms; Something?? <--> Email?
This is along shot but I'm cautiously optimistic someone has thought of it long before and possibly an simple answer does exist... If I want to move a thing between methods (I still call them subroutines) I can put the thing in a ViewState and then later take it out. If I want to move a thing between web forms, I can put the thing into a Session and then later take it out. Is there a somethingX that if I want to I can take the thing put it into a somethingX put the somethingX into a file and email the file take the somethingX out of the file read the somethi...

How to strip a string of <html>, ,</html>, <body>, </body>, <form ... >, </form> tags?
I have stream which is the HTML input of a page. Now I want to use only that part of this page, that is within <form .....> and </form> tags, and excluding these tags.How would I go about stripping <html>, ,</html>, <body>, </body>, <form ... >, </form>, <head> and </head> tags? I have to make sure that <head ...javascript..> and its corresponding </head> tags are not stripped in this process.sun21170    Wait... you said you wanted to strip the head tags, and you're also saying you need to NOT strip the ...

LoginName control is returning <domain>/<username> ; I only want the <username> portion
I know I can get this by using a String class method, but is there a property to the LoginView control that will only return the username portion? Thanks Hi ibra73, Yes, that can be annoying. I get around it by doing the following... I hope it helps you.  VB: ' gets the second value after domain\username has been split into [domain] [username]User.Identity.Name.Split("\").GetValue(1)  C#: // gets the second value after domain\username has been split into [domain] [username]User.Identity.Name.Split(@"\").GetValue(1); Wil"A common mistake that pe...

Can't use "defaultbutton" in <form></form> tag in login control page.
I have a login control and I tried to set the default button as the submit button within my form tag in the login page.But, I am getting the following error.Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. I already generated the machine key.Any clue! hi robin, Please try this fix if.. add the below given code into your web.config or the file that you are executing and see if your issue gets...

<<CreatUserWizard Control >>
Hi, how can i change the CreatUserWizard's Non-alphanumeric characters required value from 1 to 0? please help me .::A Day without Learning is a Lost Day:: i need ur help::A Day without Learning is a Lost Day::...

User Control: get text between <uc:1...> and </uc1> ??
Hi All, How do I retrieve the text between the open and closing user control statement? ie:<uc1:mycontrol> <ol><li>item1</li><li>item2</li></ol></uc1:mycontrol>I want the html block that is being passed to work with, in the backend of the control. thanks,james     How sure you, that your usercontrol is a container that can contain an ordered list?Thanks Mark post(s) as "Answer" that helped youElectronic ScrewWebsite||Blog||Dub@i.net I'm sure it will be html. Basically, I'm trying to cre...

superreview granted: [Bug 307819] HTML <label for> not exposed as name for form controls not in <form> : [Attachment 195496] Simple 1 line patch
neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> has granted Aaron Leventhal <aaronleventhal@moonset.net>'s request for superreview: Bug 307819: HTML <label for> not exposed as name for form controls not in <form> https://bugzilla.mozilla.org/show_bug.cgi?id=307819 Attachment 195496: Simple 1 line patch https://bugzilla.mozilla.org/attachment.cgi?id=195496&action=edit ...

Web resources about - Web Control with <abc:Control>TEXT HERE</abc:Control> - asp.net.web-forms

Resources last updated: 11/27/2015 3:32:54 PM