Mark,
Actually I got the code from your website. thank you for for doing that.
I have two questions one is after I add this code the validation controls are not working for me. when I click the button I donot get the validation message and it just run the code.
second I would like to chang the forecolor (text color that display in the please wait...button) like this but it is not working for me .this.style.foreColor='black'
Thank you. I really appreciate your help.
Protected Sub Page_Load1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
tabSearch.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(tabSearch, "") _
& ";this.value='Processing Please wait...';this.disabled = true;this.style.backgroundColor = 'silver';this.style.foreColor='black'; ")
OperatorSelector()
SelectionCriteria()
SortExpression = "contid"
StartlettingDate()
EndlettingDate()
txtDescription.Focus()
Page.Form.DefaultButton = tabSearch.UniqueID
End If
Protected Sub tabSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles tabSearch.Click
PopulateBidTabulationGridView()
System.Threading.Thread.Sleep(1000)
ClientScript.RegisterClientScriptBlock(Me.GetType, _
"reset", "document.getElementById('" & tabSearch.ClientID & "').disabled=false; ", True)
End Sub
Actually I got the code from your website. thank you for for doing that.
I have two questions one is after I add this code the validation controls are not working for me. when I click the button I donot get the validation message and it just run the code.
second I would like to chang the forecolor (text color that display in the please wait...button) like this but it is not working for me .this.style.foreColor='black'
Thank you. I really appreciate your help.
Protected Sub Page_Load1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
tabSearch.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(tabSearch, "") _
& ";this.value='Processing Please wait...';this.disabled = true;this.style.backgroundColor = 'silver';this.style.foreColor='black'; ")
OperatorSelector()
SelectionCriteria()
SortExpression = "contid"
StartlettingDate()
EndlettingDate()
txtDescription.Focus()
Page.Form.DefaultButton = tabSearch.UniqueID
End If
Protected Sub tabSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles tabSearch.Click
PopulateBidTabulationGridView()
System.Threading.Thread.Sleep(1000)
ClientScript.RegisterClientScriptBlock(Me.GetType, _
"reset", "document.getElementById('" & tabSearch.ClientID & "').disabled=false; ", True)
End Sub