We help IT Professionals succeed at work.

WriteEndTag vs RenderEndTag

mrichmon
mrichmon asked
on
2,240 Views
Last Modified: 2011-02-21
I am trying to determine when you would use WriteBeginTag/WriteEndTag vs RenderBeginTag/RenderEndTag of a HtmlTextWriter.

There really is not much in MSDN books online that I could see.

They both seem to work so when do you choose one over the other?

PS I know you need the start and end to match, but when do you use which set?
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
With RenderBeginTag, you give it the tag name, and it pushes the end tag on that stack, then pops that value off the stack in RenderEndTag.

Render... has much more intelligence when rendering a control.

Bob
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.