Load callback panels from another page into a container (div, span, table cell, etc.).
For example, you can use the next lines:
Client-side update
ob_post.UpdatePanelFromPage("callbackPanel1", "container", "callbackPanels.aspx");
<div id="container" style="border: gray 1px solid;" />
| | |
The CallbackPanel can contain simple text.
callbackPanels.aspx
<oajax:CallbackPanel runat="server" ID="callbackPanel1"> <content style="border: 1px solid gray;"> simple text here </content> </oajax:CallbackPanel>
See also live UpdatePanelFromPage Example.
For more information about CallbackPanel see How It Works page.
| | |
The CallbackPanel can contain html, css, javascript.
callbackPanels.aspx
<oajax:CallbackPanel runat="server" ID="callbackPanel1"> <content style="border: 1px solid gray;"> <style media="all"> .something { COLOR: blue; } </style> <script language="javascript">alert("this alert is from a script inside the panel");</script> <div class="something">now we have a text with css and js</div> </content> </oajax:CallbackPanel>
See also live UpdatePanelFromPage Example.
For more information about CallbackPanel see How It Works page.
| | |
The CallbackPanel can contain server controls like Obout SlideMenu, Obout Calendar, ASP.NET controls (ASP Literal, ASP DataList, etc.).
callbackPanels.aspx
<oajax:CallbackPanel runat="server" ID="callbackPanel1"> <content style="border: 1px solid gray;"> <osm:SlideMenu id = "slidemenu" runat = "server" StyleFolder = "/slidemenu/styles/pro_7" Height = 110 SelectedId = "a_a"> <menuitems> <osm:Parent id="a">Company Home</osm:Parent> <osm:Child id="a_a"> Entertainment </osm:Child> <osm:Child id="a_b"> Games </osm:Child> <osm:Child id="a_c"> Greeting Cards </osm:Child> <osm:Child id="a_d"> Downloads </osm:Child> <osm:Child id="a_e"> New Cars </osm:Child> <osm:Child id="a_f"> Used Vehicles </osm:Child> <osm:Child id="a_g"> Smart Stuff </osm:Child> <osm:Parent id="b">System Tasks</osm:Parent> <osm:Child id="b_a"> View system info </osm:Child> <osm:Child id="b_b"> Add programs </osm:Child> <osm:Child id="b_c"> Change settings </osm:Child> <osm:Child id="b_d"> Add users </osm:Child> </menuitems> </osm:SlideMenu> </content> </oajax:CallbackPanel>
See also live UpdatePanelFromPage Example.
For more information about CallbackPanel see How It Works page.
| | |
| "We’re very happy customers. Thanks for the great turnaround time and attention with your tech support.Thanks." |
Chris LoPresto |
| Microdesk, Inc. |
| | |
|