G
Guest
I set a Web ASP button to have its OnClientClick set to a javascript that
opens a window. For some reason, every other time I click on the button it
displays the older webpage from the cache rather than the most recent. I
added an instruction to clear out the cache by doing the following in the
server OnClick
proctected void Button1_Click(object sender, EventArgs e)
{
Response.Cache.SetExpires(DateTime.Now);
}
Can you have the Button's server OnClick and On Client Click both set at the
same time? Also, what do I have to do to clear out the cache before the
javascript is executed?
opens a window. For some reason, every other time I click on the button it
displays the older webpage from the cache rather than the most recent. I
added an instruction to clear out the cache by doing the following in the
server OnClick
proctected void Button1_Click(object sender, EventArgs e)
{
Response.Cache.SetExpires(DateTime.Now);
}
Can you have the Button's server OnClick and On Client Click both set at the
same time? Also, what do I have to do to clear out the cache before the
javascript is executed?