RE: Iframe rendering to an html table

Discussion in 'ASP .Net' started by =?Utf-8?B?VGFtbXk=?=, Apr 28, 2004.

  1. I just figured this out on my own.... woohoo! Here's my new code in case anyone else is having a similar problem:

    Dim TabRow As New HtmlTableRow

    Dim TabCell As New HtmlTableCell
    Dim writer As New StringWriter
    Dim output As New HtmlTextWriter(CType(writer, System.IO.TextWriter)) <--changed this


    output.WriteBeginTag("iframe")

    output.WriteAttribute("Name", "encounterutil")
    output.WriteAttribute("src", "http://ingnosis/ingnosisserver/medical%20director/utilization/encounter%20utilization%20trends?%2fMedical+Director%2fUtilization%2fCurrent+Encounter+Utilization+Trends&amp;rs:Command=Render&amp;rc:Toolbar=false&amp;rc:Zoom=False")
    output.WriteAttribute("height", "310")
    output.WriteAttribute("width", "375")
    output.WriteAttribute("style", "border: 1 solid #C0C0C0")
    output.WriteAttribute("border", "0")
    output.WriteAttribute("frameborder", "0")

    output.Write(HtmlTextWriter.TagRightChar)

    output.WriteEndTag("iframe")
    output.WriteLine()





    TabCell.InnerHtml = writer.ToString <------ Changed this... was trying to render control before but that didn't work... I finally figured out that I could use the string of the writer :)

    TabRow.Cells.Add(TabCell)

    charts.Rows.Add(TabRow)
     
    =?Utf-8?B?VGFtbXk=?=, Apr 28, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    3,497
    Beauregard T. Shagnasty
    Dec 1, 2005
  2. Peter Mount
    Replies:
    4
    Views:
    984
    Peter Mount
    Jan 31, 2006
  3. Sandros
    Replies:
    3
    Views:
    394
    GIMME
    Nov 5, 2004
  4. Scott
    Replies:
    6
    Views:
    994
    [MSFT]
    Apr 14, 2004
  5. Daedalous
    Replies:
    3
    Views:
    788
    Daedalous
    Jan 16, 2004
Loading...

Share This Page