Click here to Skip to main content
15,885,278 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionasp.net web table problem Pin
classy_dog19-Oct-11 11:11
classy_dog19-Oct-11 11:11 
AnswerRe: asp.net web table problem Pin
Brij19-Oct-11 19:55
mentorBrij19-Oct-11 19:55 
GeneralRe: asp.net web table problem Pin
classy_dog20-Oct-11 4:16
classy_dog20-Oct-11 4:16 
Questionasp.net 2010 table control problem Pin
Member 821751719-Oct-11 10:10
Member 821751719-Oct-11 10:10 
QuestionOpen multiple pdfs in html page Pin
vanikanc19-Oct-11 5:24
vanikanc19-Oct-11 5:24 
AnswerRe: Open multiple pdfs in html page Pin
Dennis E White19-Oct-11 7:13
professionalDennis E White19-Oct-11 7:13 
GeneralRe: Open multiple pdfs in html page Pin
Bernhard Hiller19-Oct-11 20:11
Bernhard Hiller19-Oct-11 20:11 
QuestionOpen PDF in New Window from Code Behind using JavaScript Pin
NTheOne18-Oct-11 23:22
NTheOne18-Oct-11 23:22 
Hello All,

I want to open PDF file in new window on button click event from code behind through JavaSctipt.

I am using below mentioned code for opening PDF file in new window.

string PopUpWindowPage = @"E:\\\Prism4.pdf";
           string Script = "";
           Script += "<script id='PopupWindow'>";
           Script += "confirmWin = window.open(' " + PopUpWindowPage + "','" + 1 + "','scrollbars=yes,resizable=1, width=960,height=500,left=50,top=130,status');";
           Script += "</script>";
           if (!Page.IsClientScriptBlockRegistered("PopupWindow"))
               Page.RegisterClientScriptBlock("PopupWindow", Script);

I get below mentioned error message while opening the PDF file in new window.

Microsoft JScript runtime error: Access is denied.


Can Anyone tell me whats the issue with above code or any other settings have to do?

Thanks in Adv...
AnswerRe: Open PDF in New Window from Code Behind using JavaScript Pin
JP_Rocks19-Oct-11 3:08
JP_Rocks19-Oct-11 3:08 
AnswerRe: Open PDF in New Window from Code Behind using JavaScript Pin
jkirkerx28-Oct-11 20:26
professionaljkirkerx28-Oct-11 20:26 
QuestionCommand line for 'Convert to Web Application' option in Visual Studio Pin
ravidhari18-Oct-11 21:13
ravidhari18-Oct-11 21:13 
QuestionSingle Sign On Pin
berba18-Oct-11 20:52
berba18-Oct-11 20:52 
AnswerRe: Single Sign On Pin
Simon Bang Terkildsen19-Oct-11 6:18
Simon Bang Terkildsen19-Oct-11 6:18 
Questionany one can tell how get confirmation mail after user registration in asp.net c# Pin
sheemap18-Oct-11 20:44
sheemap18-Oct-11 20:44 
AnswerRe: any one can tell how get confirmation mail after user registration in asp.net c# Pin
David Mujica19-Oct-11 3:45
David Mujica19-Oct-11 3:45 
GeneralRe: any one can tell how get confirmation mail after user registration in asp.net c# Pin
AjayKumar Pal20-Oct-11 3:50
AjayKumar Pal20-Oct-11 3:50 
QuestionI want to force webpage to IE9 compability mode. Pin
buffering8318-Oct-11 13:36
buffering8318-Oct-11 13:36 
AnswerRe: I want to force webpage to IE9 compability mode. Pin
Anuj Banka18-Oct-11 19:04
Anuj Banka18-Oct-11 19:04 
QuestionHorizontal Scrollbar, GridView and Styles Pin
paas18-Oct-11 8:47
paas18-Oct-11 8:47 
AnswerRe: Horizontal Scrollbar, GridView and Styles Pin
Anuj Banka18-Oct-11 19:22
Anuj Banka18-Oct-11 19:22 
GeneralRe: Horizontal Scrollbar, GridView and Styles Pin
paas19-Oct-11 1:16
paas19-Oct-11 1:16 
QuestionAjax async get function problem Pin
symeramon18-Oct-11 3:39
symeramon18-Oct-11 3:39 
AnswerRe: Ajax async get function problem Pin
symeramon19-Oct-11 4:49
symeramon19-Oct-11 4:49 
AnswerRe: Ajax async get function problem Pin
jkirkerx28-Oct-11 20:30
professionaljkirkerx28-Oct-11 20:30 
GeneralRe: Ajax async get function problem Pin
symeramon28-Oct-11 22:07
symeramon28-Oct-11 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.