How do you make a form reload itself?

T

tom c

I wanted to make a form named "Hotel.aspx" reload itself so I just did
Response.Redirect("Hotel.aspx"). Is there a better way or more
prefered way to do this?
 
A

Alvin Bruney [MVP]

That should work, or you can do a meta tag refresh, it accomplishes the same
thing though. You probably think it isn't as clean but the web is stateless
so a refresh and redirect look the same to server.
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
 
D

deepak.programming

u can do like this.
<script type="text/javascript">
document.location.href=document.location.href;
Do you make this decision on client or server side?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


tom c said:
I wanted to make a form named "Hotel.aspx" reload itself so I just did
Response.Redirect("Hotel.aspx"). Is there a better way or more
prefered way to do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top