Hi i have made i guestbook with a mysql database, but i have i problem.
I wonder how i do to make it update the website after each post
need help plzz
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nilanka DharmadasaPosted Jan 13, 2010, 7:57 AM
Hi Eli,
Use following line to reload your web page.
Response.Redirect(Request.RawUrl);
Example :
If you want to reload the web page when a button is clicked, write the above line inside the button click event.
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect(Request.RawUrl);
}
Please be kind enough to tick 'Do you like this answer' checkbox, if my answer helped you.
eli goPosted Jan 12, 2010, 2:07 PM
i´m using c#
Can you show how i use it in an exempel plz ?
theLizardPosted Jan 11, 2010, 6:08 PM
you could do a Response.Redirect(to page you want to refresh)