dbanazek
Posts: 1
|
Posted: 08/29/2007, 8:56 AM |
|
Hello,
I have a simple search form on my page. It has two buttons. "Search" and "Reset Data Grid." The "Reset Data Grid Button" should only be visible after the "Search" Button has been clicked.
To hide the "Reset Button" I set the visible property to False in the PageLoad event.
If Not IsPostBack Then
Dim PageData As PageDataProvider = New PageDataProvider()
PageData.FillItem(item)
Firm_InfoSearchShow()
NewGrid1Bind
Me.Firm_InfoSearchbtnReset.visible="false"
End If
However when I attempt to reset the Buttons visible property in the OnClick event for the Search Button, it doesn't work:
If CType(sender,Control).ID = "Firm_InfoSearchButton_DoSearch" Then
RedirectUrl = GetFirm_InfoSearchRedirectUrl("", "s_Name;s_Contact;s_SerialNo;s_Status;s_Phone")
EnableValidation = True
Me.Firm_InfoSearchbtnReset.visible="true"
End if
Has anyone here ever run into this problem? Does anyone have a solution to what I might be doing wrong?
Thanks
|
|
|
|