forum

Home / DeveloperSection / Forums / Open a new window from codebehind C# with window.open

Open a new window from codebehind C# with window.open

Anonymous User 1764 29-Jan-2014

I want to open a new windowand I have tried window.open

string url = "../Printticket.aspx";
       string fullURL = "window.open('" + url + "', '_blank', 'height=600,width=1000,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,titlebar=no' );";
        ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", fullURL, true);
when i tried this from the samefolder which the print ticket ,is there I am getting it right but when i tried it from the different folder iam not getting popup

Please Help.

c# c# 
Updated on 29-Jan-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By