Wednesday, March 21, 2012

Question regarding Text for CollapsiblePanel Control

Is it possible to have the displayed output of the CollapsiblePanel come from a text file or some other source? I have a file that contains some disclaimer information that I'd like to display, but it is in a text format and is about a page and a half. Is my only option to convert the text to html and then embed all of it within the control?

Would this be an appropriate control to use for this? I would if possible rather not have to display a separate .aspx page to display this information.

Hi,

You can add a iframe in the panel, set its src to the txt file directly. For instance:

<iframesrc="TextFile.txt"></iframe>

Hope this helps.


Thank you Raymond that worked great. I also discovered another way by creating a Custom Web Control and populating it with the text to be displayed. I then drop the Custom Control in my Content CollasiblePanel and surround it with a div tag to control the height, overflow, and background color.

No comments:

Post a Comment