G
Guest
Hi,
I'm wondering if anyone can help me with AJAX in ASP.NET 1.1. I have a very
specific feature that I would like to use it for.
I have a rather long form that the users use to enter data during a phone
call with a client. Since it's long, I put six Save buttons down the length
of the form and asked the users to save often. When they click the Save
buttons, the data is saved to a central database and a text label is changed
to say "successful" or "unsuccessful."
Since this involves a postback to the server, I turned on Smart Navigation
so that the focus would stay at the same position. I didn't want the users
to have to scroll down the length of the form every time they clicked Save.
But we're having problems with Smart Navigation.
So, my question is can I use AJAX to do the Save? I just want to send the
data to the central database without a postback. The only change to the
interface would be to return a "successful" or "unsuccessful" message. Can
anyone advise me on how to do this in 1.1?
I pasted some code below. Let me know if it would help to see the code for
the SaveData function.
Thanks!
Chris
============================
Each Save button has this behind it:
Private Sub btnSave1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSave1.Click
If Page.IsValid Then
lblSave1.Visible = True
If SaveData() Then
lblSave1.Text = "Successfully saved."
Else
lblSave1.Text = "An error occurred. " & Session("ErrMsg")
End If
End If
End Sub
===============================
I'm wondering if anyone can help me with AJAX in ASP.NET 1.1. I have a very
specific feature that I would like to use it for.
I have a rather long form that the users use to enter data during a phone
call with a client. Since it's long, I put six Save buttons down the length
of the form and asked the users to save often. When they click the Save
buttons, the data is saved to a central database and a text label is changed
to say "successful" or "unsuccessful."
Since this involves a postback to the server, I turned on Smart Navigation
so that the focus would stay at the same position. I didn't want the users
to have to scroll down the length of the form every time they clicked Save.
But we're having problems with Smart Navigation.
So, my question is can I use AJAX to do the Save? I just want to send the
data to the central database without a postback. The only change to the
interface would be to return a "successful" or "unsuccessful" message. Can
anyone advise me on how to do this in 1.1?
I pasted some code below. Let me know if it would help to see the code for
the SaveData function.
Thanks!
Chris
============================
Each Save button has this behind it:
Private Sub btnSave1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSave1.Click
If Page.IsValid Then
lblSave1.Visible = True
If SaveData() Then
lblSave1.Text = "Successfully saved."
Else
lblSave1.Text = "An error occurred. " & Session("ErrMsg")
End If
End If
End Sub
===============================