What's wrong with this ??

J

JezB

What's wrong with this c# code ?

Response.Write("<script language=\"javascript\">");
Response.Write("window.open('WebForm1.aspx','TEST PAGE','width=400');");
Response.Write("</script>");

I keep getting "Invalid Argument" errors (when I expand on the warning icon
created by the above on the bottom left of IE). The target aspx file does
exist.
 
J

JezB

OK I found out that you cant have spaces in the second argument - I thought
this was window title.
 
G

Guest

Remove the 2nd argument in the window.open() function. Space is not allowed. Make it either "TEST_PAGE" or "TESTPAGE" .
 
J

JezB

You're a month late, but thanks !

Bharat Biyani said:
Remove the 2nd argument in the window.open() function. Space is not
allowed. Make it either "TEST_PAGE" or "TESTPAGE" .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top