By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,925 Members | 732 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,925 IT Pros & Developers. It's quick & easy.

Is it possible to not render a end tag of a .NET server control ?

P: n/a
My problem,

I have a custom server control who inherits of a Textbox.

What I can make for dont render the "SelfClosingChars" ("/") ?

Ex: <INPUT .... >

Thanks !

Eric
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Not an answer, more another question...

Why would you want to not include the "/" in the element. If you believe
that the move towards XHTML compliance is right for the future, it should be
included. I haven't come across a browser yet that complains about it. Or do
you have some special requirement?
"Eric" <Er**@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
My problem,

I have a custom server control who inherits of a Textbox.

What I can make for dont render the "SelfClosingChars" ("/") ?

Ex: <INPUT .... >

Thanks !

Eric

Nov 18 '05 #2

P: n/a
Yes, use the RenderBeginTag method without the RenderEndTag method.

Here's more info:
http://msdn.microsoft.com/library/de...inTagTopic.asp

http://msdn.microsoft.com/library/de...intagtopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Eric" <Er**@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
My problem,

I have a custom server control who inherits of a Textbox.

What I can make for dont render the "SelfClosingChars" ("/") ?

Ex: <INPUT .... >

Thanks !

Eric

Nov 18 '05 #3

P: n/a
Hi Steve,

Thank for your help, but when I use only RenderBeginTag without
RenderEndTag, my control render nonetheless the endtag ???

However when I use "WriteBeginTag" and "Write(HtmlTextWriter.TagRightChar)"
my control render only the ">" without the "/".

Thanks !!

Eric

"Steve C. Orr [MVP, MCSD]" wrote:
Yes, use the RenderBeginTag method without the RenderEndTag method.

Here's more info:
http://msdn.microsoft.com/library/de...inTagTopic.asp

http://msdn.microsoft.com/library/de...intagtopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Eric" <Er**@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
My problem,

I have a custom server control who inherits of a Textbox.

What I can make for dont render the "SelfClosingChars" ("/") ?

Ex: <INPUT .... >

Thanks !

Eric


Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.