Using Inline content enables the pane to be edited directly during design time.
IFrame mode is more flexible as developer can easily customize the ContentURL property
and point it to a specific page.
This topic will show you how to use WebAccordion with Inline and IFrame content.
To use WebAccordion with Inline content
- Right-click on WebAccordion control and choose Properties.
- Go to Items and click the collection button.
- Add a WebAccordion item. Set the following properties:
ContentMode
|
Inline (By default, it is set to Inline)
|
HeaderContentMode
|
Text/Image/TextAndImage/Inline
|
HeaderText
|
WebAccordionContent
|
- If HeaderContentMode is set to Image/TextAndImage,
you need to specify the image url in HeaderImageURL property.
- You can simply edit the pane directly during design time.
- Run the project.
To use WebAccordion with IFrame content
- Add a page called PageWithIFrame.aspx.
- Right-click on WebAccordion control and choose Properties.
- Go to Items and click the collection button.
- Add a WebAccordion item. Set the following properties:
ContentMode
|
IFrame
|
ContentURL
|
Specify the url where PageWithFrame.aspx is created.
|
HeaderText
|
WebAccordionContent
|
- If HeaderContentMode is set to Image/TextAndImage, you need to
specify the image url in HeaderImageURL property.
- You can simply edit the pane directly during design time.
- Run the project