R
Richard
I have a Webform with a dropdownlist for selecting reports to process. When
the user click's a linkbutton to process the report, either a datagrid is
filled and made visible on the same form, or another form opens to show the
results. Either way, I want a status label to appear on the current form to
say "Processing report. Please wait" Unfortunately the label never appears
when I set lblStatus.Visible = True in the linkbutton's click event.
Short of async processing, how can I quickly display the label when a user
clicks a linkbutton?
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
If ddlReports.SelectedItem.Value <> "-1" Then
'Show the label...this never works.
lblStatus.Visible = True
Response.Redirect(ddlReports.SelectedItem.Value, False)
Else
ShowMessageBox(Me, "Please select a report from the list.")
End If
End Sub
the user click's a linkbutton to process the report, either a datagrid is
filled and made visible on the same form, or another form opens to show the
results. Either way, I want a status label to appear on the current form to
say "Processing report. Please wait" Unfortunately the label never appears
when I set lblStatus.Visible = True in the linkbutton's click event.
Short of async processing, how can I quickly display the label when a user
clicks a linkbutton?
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
If ddlReports.SelectedItem.Value <> "-1" Then
'Show the label...this never works.
lblStatus.Visible = True
Response.Redirect(ddlReports.SelectedItem.Value, False)
Else
ShowMessageBox(Me, "Please select a report from the list.")
End If
End Sub