Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trigger page load on click event in ASP

Status
Not open for further replies.

benjatado

Programmer
May 15, 2005
52
0
0
US
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...

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top