G
Guest
I have a C# asp.net webform with a Link Button to a website but it's not
opening the website correctly. It's saying "The page cannot be found". But
the website is loading when I use IE. Below is the code and thanks in advance.
private void lbtnWebsite_Click(object sender, System.EventArgs e)
{
string script = "<script language=\"javascript\">";
script += "var target = '_blank';";
script += "window.open('ActiveVendors.aspx', 'target',
'fullscreen=no,channelmode=no,
toolbar=no,menubar=no,location=no,directories=no,height=400,width=350,resizable=no,scrollbars=yes')";
script += "window.open('website', 'target', 'fullscreen=no,channelmode=no,
toolbar=no,menubar=no,location=no,directories=no,height=800,width=800,resizable=yes,scrollbars=yes')";
script += "</script>";
Page.RegisterStartupScript("winOpen", script);
}
where website = "http://www.marconi.com"
opening the website correctly. It's saying "The page cannot be found". But
the website is loading when I use IE. Below is the code and thanks in advance.
private void lbtnWebsite_Click(object sender, System.EventArgs e)
{
string script = "<script language=\"javascript\">";
script += "var target = '_blank';";
script += "window.open('ActiveVendors.aspx', 'target',
'fullscreen=no,channelmode=no,
toolbar=no,menubar=no,location=no,directories=no,height=400,width=350,resizable=no,scrollbars=yes')";
script += "window.open('website', 'target', 'fullscreen=no,channelmode=no,
toolbar=no,menubar=no,location=no,directories=no,height=800,width=800,resizable=yes,scrollbars=yes')";
script += "</script>";
Page.RegisterStartupScript("winOpen", script);
}
where website = "http://www.marconi.com"