<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Comparitive .aspx.cs" Inherits="Comparitive_" %>
in text box 2 i am entering the (hyderabad & banglore ) i should compare the text box values with the values present in the database and retrieve the result
thanks in advance
dheeraj ghadePosted Mar 17, 2015, 3:52 AM
Do you want to get data on basis of 2 word which you have entered in textbox2 ??
if Yes, then simply split values of textbox by space. you will get word array list.
Can be done var ListofWords = textbox2.Text.trim().Split(' ');
Than in database use IN clause in query pass word list.