Hi There...!
I need to do something in an ASP.NET page, filtering data by using inputs from a form in a pevious page. I know how to pass the variable to the next page, but doesn't seem to get it right in the SQL (or in fact - I do not know what syntax to use). I know it sounds stupid, but when I googled it, I can't find anything that can be of help. So if anybody can just maybe point me in the right direction, I would appreciate it...
Here is my code: (where it is marked in red, is where my problem is)
I need to do something in an ASP.NET page, filtering data by using inputs from a form in a pevious page. I know how to pass the variable to the next page, but doesn't seem to get it right in the SQL (or in fact - I do not know what syntax to use). I know it sounds stupid, but when I googled it, I can't find anything that can be of help. So if anybody can just maybe point me in the right direction, I would appreciate it...
Here is my code: (where it is marked in red, is where my problem is)
Code:
<div class="tip">
<p>You have searched for: "<% Dim s As String = Request.Form("telfind").ToString
response.Write(s)%>"</p>
</div>
<div class="content01" id="content04">
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/assets/database/AllContacts.mdb" SelectCommand="SELECT ContactsMainTable.Heading, ContactsMainTable.Surname, ContactsMainTable.NameOfContact, ContactsMainTable.CellPhoneNo, ContactsMainTable.Designation, ContactsMainTable.OfficeExtension, ContactsMainTable.SpeedDial, ContactsMainTable.FaxNo, ContactsMainTable.EmailAdd
FROM ContactsMainTable
WHERE (((ContactsMainTable.Surname) LIKE [B][COLOR="red"]'@s'[/COLOR][/B]))
ORDER BY ContactsMainTable.ID;"></asp:AccessDataSource>