| |

VerySource

 Forgot password?
 Register
Search
View: 577|Reply: 4

The problem of using js in asp.net, dizzy, masters come in and give pointers

[Copy link]

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Japan

Post time: 2020-3-21 09:00:01
| Show all posts |Read mode
Why can't the following code jump to index.aspx, it is not reflected, what is the problem?
string tt = "qminoa = window.open ('" + Request.ApplicationPath + "/ index.aspx" + "'"
+ ", '', 'toolbar = no, menubar = no, titlebar = yes, directories = no, resizable = yes, status = yes, fullscreen = no, top = 0; left = 0, width = 900, height = 700 '); ";

Response.Write ("<script language = javascript>");
Response.Write (tt);
Response.Write ("qminoa.moveTo (0,0);");
Response.Write ("qminoa.resizeTo (screen.availWidth, screen.availHeight);");
Response.Write ("window.opener = null;");
Response.Write ("window.close ();");
Response.Write ("</ script>");
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-6-27 00:15:01
| Show all posts
There is no problem with the code.
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Unknown

 Author| Post time: 2020-6-27 09:45:01
| Show all posts
But he just can’t jump to index.aspx
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-6-27 12:45:01
| Show all posts
Have a look at the generated HTML source code?

Is there any tool to block the window?
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-6-27 14:45:01
| Show all posts
shenmue024You are right, thanks
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list