Panel Class question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CroCrew
    Recognized Expert Contributor
    • Jan 2008
    • 564

    Panel Class question

    Hello Everyone,

    Ok, this is a general question and any advice on the subject would be appreciated.

    First I will describe my quandary. I have a page that I allow internal users to add HTML content too directly on a page. I am finding that many of the people are not closing their tags and thus reeking havoc on the rest of the page.

    I was thinking of adding an iFrame to the page and just let them add their content on the page that loads in the iFrame. But, I don’t like using iFrames. So I started to look at the Panel Class.

    From my understanding the Panel control provides a scriptable area on a page for displaying static information or script output. Its use is to control the display of other text, HTML, and server controls coded inside the Panel control.

    So, the decision is would a Panel control really help my predicament? Is there a hidden gotcha that I have not seen with using a Panel control this way? Is there a better solution?

    I would like to thank anyone that participates on this subject. I value everyone’s advice.

    Happy Coding,
    CroCrew~
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi there,

    Heard about UFrame? Kindly follow the attached link UFRAME: goodness of UpdatePanel and IFRAME together.

    You might find it interesting, happy coding :)
    Last edited by Frinavale; Feb 12 '10, 02:22 PM. Reason: Removed link to competing forum and replaced it to the link that was in the accepted answer of that forum

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      When an ASP.NET Panel is rendered as HTML, it is rendered as a <div></div>...so no, I'm sorry but a Panel is not going to help you in this case.

      I'm also not sure if the UFrame is going to really help you since you haven't mentioned using UpdatePanels or Ajax at all.

      I would say that the iframe is the best idea...use it to display the "user edited" HTML so that your page is not messed up.

      Comment

      • CroCrew
        Recognized Expert Contributor
        • Jan 2008
        • 564

        #4
        Hello Frinavale,

        I am a big fan of using Ajax. I have used the UpdatePanel control in the past. So, Any Ajax control is n play for this discussion.

        With that said would you still think an iframe is the best solution? I kind of like the use of this uframe. What do you think?

        Also, if there is any other ideas out there please bring them forward.

        Many thanks everyone. I hope that this discussion will help other and not only me.

        Happy Coding,
        CroCrew~

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          I've never used a UFrame before....check it out and let me know how it goes :)

          Comment

          Working...