Last post Jul 08, 2010 04:08 AM by DavyQuyo
Jul 06, 2010 04:03 AM|DavyQuyo|LINK
I try to mak a custom textbox.
Something pretty easy to do but I can't figure out one thing.
When I write my textbox in designmode I have this
<custom:Textbox runat="server" ID="Textbox1">Test</custom:Textbox>
The problem is The textbox is a webcontrol I added to my class [Parsechildren(false)] like this
public class Textbox : WebControl
now the problem is I want to able to write the Text from the textbox between the beginningtag and andingtag but I want to disable every other control in designmode.
When I add < between the tags then you can see you can write all tags between it.
Can someone help me disable all controls except literal between the tage in designmode?
Jul 06, 2010 02:57 PM|RichardD|LINK
Try [ParseChildren(true, "Text")] instead.
Jul 06, 2010 03:28 PM|DavyQuyo|LINK
no, as soon as I make parsechildren true then there is no content allowed between the tags. Not only that but the tag automaticly closes to.
Jul 07, 2010 11:51 PM|Qin Dian Tang - MSFT|LINK
Have a look at these links about solving this issue:
Jul 08, 2010 04:08 AM|DavyQuyo|LINK
Yeah this is the missing part I need.
Thx for the help :)