ASP.NET Flyout - Knowledge Base

« Back to Knowledge Base list

How to open a flyout from server side on page load?

Q: How to open a flyout from server side on page load?

A: The flyout has a OnClientInit handle. Setting OnClientInit ="setTimeout(function(){openFlyout();},100)" will make the flyout open on load of the page.

<script type="text/javascript">
        function openFlyout()
        {
           <%=Flyout1.getClientID()%>.Open();          
        }
</script>

<
obout:Flyout ID="Flyout1" runat="server" OnClientInit="setTimeout(function(){openFlyout();},100)" ... >