When the search page first loads, you can hide the DataGrid that will be used to display the search results.
<script runat="server"> Sub Page_Load() If Not IsPostBack Then dgName.Visible = false Else dgName.Visible = true End If End Sub </script>
where dgName is the ID of your DataGrid.
If the page language is C#, enter the following code:
<script runat="server">
void Page_Load() {
if (!IsPostBack) {
dgName.Visible = false;
} else {
dgName.Visible = true;
}
}
</script>