title: adding html elements with in asp.net
body: <p>I need some help figuring out how to do something.</p>
  
  <p>I got this gallery (galleriffic) and some images that are store in Flicker.com so I used the flicker api to get the images but still add them manually to test the gallery.</p>
  
  <p>Now I'm looking for a good way to insert the images into the html after I get them with the flicker api.</p>
  
  <p>I found this <a href="http://www.dotnetperls.com/htmltextwriter" rel="noreferrer">htmltextwriter </a>and used the function</p>
  
  <blockquote>
    <p><code>Response.Write(GetDivElements());</code></p>
  </blockquote>
  
  <p>but this is adding the div's on the top of the html and not inside the body tag.</p>
  
  <p>my qustions is:</p>
  
  <ol>
  <li><p>is <code>HtmlTextWriter writer = new HtmlTextWriter(stringWriter)</code> a good way to build html tags on the server side?</p></li>
  <li><p>Is there a better way to add elements to the html other then <code>Response.Write("");</code> ?</p></li>
  </ol>