How to force a complete reload of a page in asp.net
Hello friends,
I want to have a page where it should reload itself completely from scratch.I think the easiest way to handle is to have the button do the DB stuff and then load the page.
I've tried putting in a server.But when i try to click on button but it seems to get into an infinite loop.
Re: How to force a complete reload of a page in asp.net
Sure i will help you out with this issue did you try to use Response.Redirect Option i hope it will work for you.
Intel Dual core 2.66 Ghz
915 MSI Motherboard with Intel chipset
512 mb RAM
80gb HDD
Re: How to force a complete reload of a page in asp.net
Thanks fore replying me i try to do it but response.redirect is not working for me.
Re: How to force a complete reload of a page in asp.net
Try to use the following code
Response.AddHeader "Refresh", "0;URL=default.asp"
Once your page is download after that you can use the following code
If PageStatus = "reload" Then
Response.AddHeader "Refresh", "0;URL=SamePage.asp"
PageStatus = ""
End If