birre
05-07-2007, 09:10 AM
Hi,
I'm using 2.0 framework.
On my site, i have an image (arrow) that causes a postback via javascript:
function clickVolgendeWn()
{
__doPostBack('volgendeWn','')
}
in my .net code, this will be firing :
If (Page.Request.Form("__EventTarget") = "volgendeWn") Then
'wanneer op volgende werknemer geklikt werd, zal de module bVolgendeWn_Click ingeladen worden
bVolgendeWn_Click(Me, New System.Web.UI.ImageClickEventArgs(0, 0))
End If
Everything is working fine, the only problem is, when I press the arrow, the event is firing great, but when i press F5, the event will fire again... while it shouldn't!!!
Is there anything possible to check wether it's an F5 postback or not?
Tnx in advance!
I'm using 2.0 framework.
On my site, i have an image (arrow) that causes a postback via javascript:
function clickVolgendeWn()
{
__doPostBack('volgendeWn','')
}
in my .net code, this will be firing :
If (Page.Request.Form("__EventTarget") = "volgendeWn") Then
'wanneer op volgende werknemer geklikt werd, zal de module bVolgendeWn_Click ingeladen worden
bVolgendeWn_Click(Me, New System.Web.UI.ImageClickEventArgs(0, 0))
End If
Everything is working fine, the only problem is, when I press the arrow, the event is firing great, but when i press F5, the event will fire again... while it shouldn't!!!
Is there anything possible to check wether it's an F5 postback or not?
Tnx in advance!