I am stumped with trying to trigger a page load in a button click event. I would like to display a "processing" statement prior to a redirect using the code below.
If someone could let me know how to trigger the page load and make the processingtxt.Visible = true that would be super!
Here is my code...
Thanks in advance!!
-b
If someone could let me know how to trigger the page load and make the processingtxt.Visible = true that would be super!
Here is my code...
Code:
Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSend.Click
Dim i As Integer
Dim trackList As New ArrayList()
Dim clicked_btnSend As Button = sender
clicked_btnSend.Text = "Processing..."
clicked_btnSend.Enabled = False
processingtxt.Visible = True
For Each item As ListItem In lbSelectedTracks.Items
trackList.Add(item.Value)
Next
DataUtilities.UploadTracks(trackList)
lbSelectedTracks.Items.Clear()
For i = 0 To (gridTracks.Rows.Count - 1)
Dim cb As CheckBox
Dim sRow As String = ""
cb = gridTracks.Rows(i).Cells(5).Controls(1)
If cb.Checked = True Then cb.Checked = False
Response.Redirect("confirm.aspx")
Next
End Sub
Thanks in advance!!
-b