Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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