Hi om prakash,
That's because the button is not submitted with the form when you submit it through code; the button will only be passed to the server when you actually click it.
To work around this, add a hidden form field to your form and check for that field:
Code:
<form ...>
<input type="hidden" value="True" name="IsSubmitted" />
...
</form>
Then in your ASP code use this:
Code:
If Request.Form("IsSubmitted") <> "" Then
End If
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Photograph by
Weezer (From the album:
Green Album)
What's This?