Click here to Skip to main content
15,848,580 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have written javascript in C# code behind . i want to open popup window for any Browser.
My problem is that that poup window is working for Internet Explorer 11.but this popup window is not working for Internet Explorer 9. its throwing error. how to solve.

This is my code--

Response.Write("<script type='text/javascript'>'ProductsDetails.aspx?ID=" + e.Item.Cells[0].Text + "','height=80','width=1100','_blank');</script>");

Error is --

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/5.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Wed, 5 Feb 2014 12:01:06 UTC

Message: Invalid argument.
Line: 1
Char: 1
Code: 0
Bojjaiah 5-Feb-14 7:10am    
make compatible in your IE 11.
kamalsekhar 5-Feb-14 7:18am    
We cannt upgrade IE. it is IE 9
Bojjaiah 5-Feb-14 7:39am    
let me know if working or not?
Bojjaiah 5-Feb-14 7:30am    
Open your IE 11->Tools->Compatibility View->Add your Localhost/ip then run it
kamalsekhar 5-Feb-14 7:39am    
pls see properly, what i need . i am able to open popup window for IE 11.its working fine for IE11. For IE 9, popup window is not working. this is my question. how to solve without upgrading ID

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900