| |

VerySource

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

asp.net close screen code

[Copy link]

7

Threads

15

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-6 12:30:01
| Show all posts |Read mode
I would like to close (disappear) the screen in the button click event in 1.aspx
How should the code be written? vb syntax
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2020-1-6 14:03:01
| Show all posts
Just click the button and add the following code:
Response.Write (<script> close (); </ script>);
Reply

Use magic Report

7

Threads

15

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-1-6 14:36:01
| Show all posts
Is there anything other than a JScript script?
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-6 14:39:02
| Show all posts
Direct client onclientclick = "window.close ();" without writing background
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-7 10:33:01
| Show all posts
Response.Write ("<script language = 'javascript'> window.close () </ script>");
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