Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
Dear sir
 
I have some problem when i am implementing code in my project. I am trying to popup window without using click events.
 
I like to implements code when my first page is open(starting page) that time popup window display.
 
please give me information how to solve this problem or try to implements code...
 
thanks in advanced !!
Posted 1-Oct-12 10:51am
Comments
richcb at 1-Oct-12 16:20pm
   
Are you referring to a Modal Popup Extender in AJAX?
Member 8089110 at 2-Oct-12 0:12am
   
sir,i am using modalpopup extender in ajax for popup window.but my condition is only the page should be started popup window.
jkirkerx at 1-Oct-12 18:11pm
   
What method are you using for your modal popup, every method has a way to show the panel or div tags on page.load
Member 8089110 at 2-Oct-12 0:14am
   
Dear sir,
You just send your code i m trying to implements your code in my project but only my condition the page should be started on modal popup window without any click events..
 
thanks in advanced !!
Sergey Alexandrovich Kryukov at 1-Oct-12 20:38pm
   
Well, and what even should popup a window instead? And did you know that popup window is evil? Many would block it.
--SA
Member 8089110 at 2-Oct-12 0:17am
   
Dear sir,
Please send your code in my email id i will try to improved your code just only i have one condition the page should be started on modal popup window without using click events.the page should be started modal popup window..
 
thanks for concern to me..!!
 
thanks in advanced !!
Sergey Alexandrovich Kryukov at 2-Oct-12 10:37am
   
Why? If you do want to do evil without even explaining why, you are very welcome to do it by yourself. :-)
--SA
jkirkerx at 2-Oct-12 12:24pm
   
Sergey,
 
I thought he was talking about a modal panel.
 
He will improve our code, hmm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

in client side
$(document).ready(functoin()
{
 window.open("url");
});
  Permalink  
v4
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

If you need the popup extender to open when the page loads, just do this in the code-behind in your respective language:
 
protected void Page_Load(object sender, EventArgs e)     
{
    if(!Page.IsPostBack)
    {
       ModalPopupExtender1.Show();
    }
}
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    
    <script type="text/javascript" language="javascript">
 

        function Myfun() {
 
            window.open("Compliaint.aspx", "target=_blank", "height=200,width=200,left=100");
 
        }
 

    </script>
</head>
<body onload="Myfun()" >
    <form id="form1" runat="server" >
    <div>
    <asp:Label runat="server" ID="lblMsg" EnableViewState="false"></asp:Label>
    </div>
 
    </form>
 

 
</body>
</html
>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150224.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100