Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the ways for ASP.NET to refresh the page?

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "what are the ways to refresh the page in ASP.NET". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what are the ways to refresh the page with ASP.NET?"

The first kind:

The copy code is as follows:

Private void Button1_Click (object sender, System.EventArgs e)

{

Response.Redirect (Request.Url.ToString ())

}

The second kind:

The copy code is as follows:

Private void Button2_Click (object sender, System.EventArgs e)

{

Response.Write ("

_ window.location.href=document.URL

")

}

The third kind:

The copy code is as follows:

Private void Button3_Click (object sender, System.EventArgs e)

{

Response.AddHeader ("Refresh", "0")

}

The fourth kind:

The copy code is as follows:

Private void Button6_Click (object sender, System.EventArgs e)

{

/ / there seems to be something wrong?

/ / Response.Write ("

_ window.location.reload ()

")

}

Fifth: (to be replaced)

The copy code is as follows:

Automatically refresh the page

The sixth kind:

The copy code is as follows:

At this point, I believe that we have a deeper understanding of the "ASP.NET page refresh methods", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report