i have the following example but i get error on GetPostBackEventReference line
value of tpe ...button cannot be converted to....
second question:where should i put this code? do i need just this code and nothing else
how should i for example delay for 20 seconds??
Dim sb As New System.Text.StringBuilder()
sb.Append("if (typeof(Page_ClientValidate) == 'function') { ")
sb.Append("if (Page_ClientValidate() == false) { return false; }} ")
sb.Append("this.value = 'Please wait...';")
sb.Append("this.disabled = true;")
sb.Append(cs.GetPostBackEventReference(btnAddPhotoComment))
sb.Append(";")
Me.btnAddPhotoComment.Attributes.Add("onclick", sb.ToString())
View Complete Post