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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make work with please wait....

Status
Not open for further replies.

yosie2007

Technical User
Jun 23, 2007
46
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top