I have a function Message_Show:
Public Sub Message_Show(ByVal sLabel As Label, ByVal sButton As Button,
ByVal sMessage As String, ByVal sButtonText As String)
If (IsPostBack) Then
sLabel.Text = sMessage
sLabel.Visible = True
sButton.Text = sButtonText
sButton.Enabled = False
End If
End Sub
I call this function in the SubmitBtn_Click
Message_Show(ITIN_Message, btnSubmit, "Retrieving data.... This may
take several seconds. Please be patient", "Retrieving")
The problem I'm having is this, it doesnt disable the button or show
the label until the datalist is populated. The SubmitBtn_Click function
does a DB query and populates a datalist. How can I get this to process
before the datalist is populated and shown?