M
Mark B
I have a function that looks up a SQL table to see if a search term matches.
It works fine but so far there are two things yet to work:
1) After entering a search term and pressing Enter, nothing has been
happening. It has only been searching when I click the Search button.
2) Neither of the Response.Write's have been displaying any text.
Here's the code:
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="SearchBox" runat="server" Width="168px"
AutoPostBack="True"
TabIndex="1"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Search" TabIndex="2" />
</div>
</form>
</body>
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Response.Write("Test")
If fVerifySearch(Me.SearchBox.Text) = False Then
Response.Write("No record found.")
End If
End Sub
It works fine but so far there are two things yet to work:
1) After entering a search term and pressing Enter, nothing has been
happening. It has only been searching when I click the Search button.
2) Neither of the Response.Write's have been displaying any text.
Here's the code:
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="SearchBox" runat="server" Width="168px"
AutoPostBack="True"
TabIndex="1"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Search" TabIndex="2" />
</div>
</form>
</body>
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Response.Write("Test")
If fVerifySearch(Me.SearchBox.Text) = False Then
Response.Write("No record found.")
End If
End Sub