Link to home
Create AccountLog in
Avatar of mrichmon
mrichmon

asked on

WriteEndTag vs RenderEndTag

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?
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
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