hello everyone,

I need to display an image as a popup in the default.aspx of this site.
http://donprovolone.gr/default.aspx

the image that i want to pop up when someone enters the default.aspx page can be found at

http://donprovolone.gr/images/thumbs/0000243.jpeg

for some reason i cannot make it work.

i have followed these steps, outlined in the following url

http://www.dotnetcurry.com/ShowArticle.aspx?ID=274

from the link above i am using the solution number 2.

I am using an external javascript file.


the default.aspx page is a content page. I am using the twocolumn.master which inherits from rootmaster.

in the root.master file in the head section i add

<script src="inside.js" type="text/javascript"></script>

the external javascript script is called inside.js

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}


Now in my Content Page - Default.aspx.cs I call the JavaScript function on the Page_Load:


protected void Page_Load(object sender, EventArgs e)
        {

          if (!Master.Page.ClientScript.IsStartupScriptRegistered("alert"))
            {
                Master.Page.ClientScript.RegisterStartupScript
                    (this.GetType(), "alert", "popup('http://donprovolone.gr/images/thumbs/0000243.jpeg','Hello');", true);
            }          
            if (!Page.IsPostBack)
            {
        
                                       BindData();
            }
        }

it does not work.

i have used this solution in a local website in my machine and it works.


is there any other easier alternative to display a popup window from a content page (default.aspx) with an image in the popup?

urgent help needed. thanks