how to display pop extender in after loading and display my web page [Resolved]

Posted by Gow.Net under ASP.NET on 9/18/2012 | Points: 10 | Views : 1355 | Status : [Member] | Replies : 3
when open my home page after 10 or 20 seconds display popup extender in asp.net any one give idea to display this

gowthaman8870226416


Responses

Posted by: Ranjeet_8 on: 9/20/2012 [Member] [MVP] Gold | Points: 50

Up
0
Down

Resolved
Try this
 

<script language="javascript" type="text/javascript">
window.setTimeout("Popup()", 10000); // Popup after 10 seconds
// Change your time as per requirment
function Popup() {

document.getElementById('<%= Button2.ClientID %>').click();
}
</script>


<asp:Button ID="Button2" runat="server" Text="" Style="display: none;" /><br />
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Button2"
PopupControlID="pnl">
</cc1:ModalPopupExtender>
<asp:Panel ID="pnl" runat="server" boborder="1px">
Sample Text Here
</asp:Panel>


Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kotra.Ramakrishna on: 9/18/2012 [Member] Starter | Points: 25

Up
0
Down

if your using jquery write this code

$(document).ready(function () {
//10 sec
alert('c');
setTimeout("OpeningPopup();",10000);
});

function OpeningPopup()
{
alert('calling pp');
// opeinging popup code like finding that model up ctrl and showing
}




not write this code

place below line code load event of your form

setTimeout("OpeningPopup();",10000);

Thanks & Regards
Ramakrishna.k

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 9/20/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Hi Gow.Net
Please Mark As Answer if it helps u.

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response