Get the App
SLTechnology News&Howtos  ›  Development  › 

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

Shulou Source: shulou.com Published: 2022-06-03 07:40:24 09月21日 Update

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!

Tags: Code method page content learning wrong practical deeper interest practical practical easy to operate more friends websites channels inquiries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi NVidia Shulou Tech Info MariaDB Docker