question about postback
am 13.01.2008 14:36:23 von markHi,
In the aspx file, the form is submitted with a javascript like this:
In the code-behind page, i did this (which doesn't work):
--------------------------------------------------------
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim sqlcomm As String
sqlcomm = Request.Form("sql")
If page.IsPostBack
response.write("ok")
else
....
I can solve this by doing this (which works):
-------------------------------------------
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Dim sqlcomm As String
sqlcomm = Request.Form("sql")
If sqlcomm <> "" Then
response.write("ok")
else
....
My question: why is this not considered as a postback?
Thanks
Marc