| |

VerySource

 Forgot password?
 Register
Search
View: 956|Reply: 9

How to refresh the current page ??

[Copy link]

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-24 21:40:01
| Show all posts |Read mode
asp.net (c #)
  What should I do?
   There is a picture button on the current page
 protected void ImageButton1_Click (object sender, ImageClickEventArgs e)
    {

       
    }
What should I write in the middle to refresh the current page again?
???
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-2-11 20:30:01
| Show all posts
Response.Redirect ("current page.aspx")
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-2-12 09:00:02
| Show all posts
Why i refreshed
  The contents of LISTBOX cannot be refreshed ???
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-12 12:00:01
| Show all posts
Put controls inside Localize
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-2-12 14:00:01
| Show all posts
Localize ????
   I don't understand this ??
   Could you be more detailed?
Reply

Use magic Report

1

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 United States

Post time: 2020-2-15 12:00:02
| Show all posts
Want to know if the landlord wants to refresh the whole page or a certain part? If it is the entire page, use Response.Redirect ("current page.aspx") is possible, unless your page structure is messy. You better tell if you are using a master page and how.
If you only want to refresh a small part, it is ajax. You can put the update panel in the refresh panel. The picture button can be placed anywhere, and you can use Triggers to bind your button Click. Adding updateprogress is more beautiful.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-15 13:30:01
| Show all posts
Response.write ("<script language = javascript> location.href = '?'; </ Script>")
Reply

Use magic Report

2

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-2-15 17:30:01
| Show all posts
Did you write the binding code of listbox into if (! Page.ispostback)? Ha ha
Reply

Use magic Report

0

Threads

11

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-16 20:30:02
| Show all posts
if (! Page.isPostback)
{
       Put pictures here to initialize
}
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-20 13:30:02
| Show all posts
Response.Redirect
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